![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
异常
wwm_wang_wen
这个作者很懒,什么都没留下…
展开
-
Tez session hasn‘t been created yet. Opening session
将hive任务中的reduce设置为100,如下set mapred.reduce.tasks=100;原创 2021-11-02 10:30:58 · 2933 阅读 · 0 评论 -
failed on connection exception: java.net.ConnectException: 拒绝连接
处理方法:启动resourcemanager。命令:yarn --daemon start resourcemanager如果出现failed on connection exception: java.net.ConnectException: 连接超时。关闭防火墙即可。原创 2021-10-19 09:50:32 · 4653 阅读 · 0 评论 -
IDEA中maven无法自动导入本地下载的依赖
删除本地导入报中的_remote.repositories这个文件即可导入。原创 2021-09-06 11:03:28 · 113 阅读 · 0 评论 -
Error starting Tomcat context....Error creating bean with name ‘servletEndpointRegistrar‘ define
Error starting Tomcat context…Error creating bean with name ‘servletEndpointRegistrar’ defined in class path resource…Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.错误类型:Error starting To原创 2021-07-23 11:10:16 · 1333 阅读 · 0 评论 -
定义一个全局异常处理类GlobalException,对控制层出现的异常进行统一处理
```javaimport org.springframework.web.bind.annotation.ControllerAdvice;import org.springframework.web.bind.annotation.ExceptionHandler;import org.springframework.web.bind.annotation.ResponseBody;/*定义一个全局异常处理类,对控制层出现的异常进行统一处理 */@ControllerAdvicepu.原创 2020-08-14 16:25:41 · 746 阅读 · 0 评论 -
异常提示代码
一般异常提示代码public class ServiceException extends RuntimeException{ private static final long serialVersionUID = 8403444391793311821L; public ServiceException(){super();} public ServiceException(String message){super(message);} public ServiceE原创 2020-08-12 15:51:07 · 155 阅读 · 0 评论