Yarn 之 Can't create directory /export*/yarn/nm/usercache/root/appcache/application_* Permission d...

速记

MR 作业无法提交,报错如下:

 Application application_1524369213580_48409 failed 2 times due to AM Container for appattempt_1524369213580_48409_000002 exited with exitCode: -1000
For more detailed output, check application tracking page:http://yq-hadoop19:8088/proxy/application_1524369213580_48409/Then, click on links to logs of each attempt.
Diagnostics: Application application_1524369213580_48409 initialization failed (exitCode=255) with output: main : command provided 0
main : run as user is nobody
main : requested yarn user is root
Can't create directory /export1/yarn/nm/usercache/root/appcache/application_1524369213580_48409 - Permission denied
Can't create directory /export2/yarn/nm/usercache/root/appcache/application_1524369213580_48409 - Permission denied
Can't create directory /export3/yarn/nm/usercache/root/appcache/application_1524369213580_48409 - Permission denied
Can't create directory /export4/yarn/nm/usercache/root/appcache/application_1524369213580_48409 - Permission denied
Can't create directory /export5/yarn/nm/usercache/root/appcache/application_1524369213580_48409 - Permission denied
Can't create directory /export6/yarn/nm/usercache/root/appcache/application_1524369213580_48409 - Permission denied
Can't create directory /export7/yarn/nm/usercache/root/appcache/application_1524369213580_48409 - Permission denied
Can't create directory /export8/yarn/nm/usercache/root/appcache/application_1524369213580_48409 - Permission denied
Can't create directory /export9/yarn/nm/usercache/root/appcache/application_1524369213580_48409 - Permission denied
Can't create directory /export10/yarn/nm/usercache/root/appcache/application_1524369213580_48409 - Permission denied
Can't create directory /export11/yarn/nm/usercache/root/appcache/application_1524369213580_48409 - Permission denied
Can't create directory /export12/yarn/nm/usercache/root/appcache/application_1524369213580_48409 - Permission denied
Did not create any app directories
Failing this attempt. Failing the application. 

解决办法:

删除所有数据节点目录下缓存文件,重新执行。

参考文献

1. https://community.cloudera.com/t5/Batch-Processing-and-Workflow/Can-t-create-directory-yarn-nm-usercache-urika-appcache/td-p/24891

    原文作者:步闲
    原文地址: https://www.jianshu.com/p/391abeec1217
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞