CDH 安装后启动报权限错误

OS: RHEL7

CDH:5.10.1

  安装完成后,出现了启动错误。都是因为权限问题引起的。各目录的权限如下:

$ ls -l /var/lib/ |grep hadoop
drwxr-xr-x  5 hdfs         hdfs         4096 Sep  1 13:54 hadoop-hdfs
drwxr-xr-x  2 httpfs       httpfs         75 Jul  7 14:50 hadoop-httpfs
drwxr-xr-x  2 kms          kms            59 Jul  7 14:50 hadoop-kms
drwxr-xr-x  2 mapred       mapred         75 Jul  7 14:50 hadoop-mapreduce
drwxr-xr-x  4 yarn         yarn          130 Jul 10 10:18 hadoop-yarn

解决方法:

    1. chown $path

     2. chmod 755  $path

 

参考文档:

https://community.cloudera.com/t5/Cloudera-Manager-Installation/CDH5-2-yarn-nm-state-LOCK-Permission-denied/td-p/42828

转载于:https://my.oschina.net/u/2368115/blog/915893

你可能感兴趣的:(CDH 安装后启动报权限错误)