Yarn报错:Could not find any valid local directory for nmPrivate/

原因:
yarn.nodemanager.local-dirs和hadoop的hadoop.tmp.dir参数对应文件位置不一致
解决办法:
将hdfs-site.xml中hadoop.tmp.dir属性和yarn-site.xml中的yarn.nodemanager.local-dirs属性设置为相同路径
示例
hdfs-site.xml


        hadoop.tmp.dir
        /home/suddev/dev/bd/app/tmp

yarn-site.xml


        yarn.nodemanager.local-dirs
        /home/suddev/dev/bd/app/tmp

然后重启dfs和Yarn

./stop-dfs.sh
./stop-yarn.sh
./start-dfs.sh
./start-yarn.sh

你可能感兴趣的:(Yarn报错:Could not find any valid local directory for nmPrivate/)