Yarn初始化异常:Not able to initialize user directories.exitCode:-1000

最近碰到这么一个异常:

Application application_1528180019666_0366 failed 2 times due to AM Container
for appattempt_1528180019666_0366  exited with exitCode: -1000
For more detailed output, check application tracking page:http://
datanode3:8088/proxy/application_1528180019666_0366 /Then, click on links to
logs of each attempt.Diagnostics: Not able to initialize user directories in
any of the configured local directories for user hadoop
Failing this attempt. Failing the application.

刚开始的时候看到这个问题的时候没有头绪,提交的spark程序从hadoop的日志来看,还没开始进行运算,也就是说在yarn初始化的时候出问题了。那么直接贴解决方案:
从错误信息上我们不难看出

Not able to initialize user directories in any of the configured local directories for user hadoop

这是是关于用户本地缓存资源无法初始化的问题,其实就是一个权限的问题。
最简便而受用的的方式是我们打开集群的yarn-site.xml 找到下面的属性:

  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值