TOP

hadoop命令start-dfs.sh、 start-yarn.sh出錯
2018-11-21 15:13:12 】 瀏覽:1445
Tags:

版權聲明:本文為博主原創文章优乐棋牌app下载,未經博主允許不得轉載。 https://blog.csdn.net/God_V/article/details/82690931

start-dfs.sh出錯

ERROR: Attempting to operate on hdfs namenode as root
ERROR: but there is no HDFS_NAMENODE_USER defined. Aborting operation.
Starting datanodes
ERROR: Attempting to operate on hdfs datanode as root
ERROR: but there is no HDFS_DATANODE_USER defined. Aborting operation.
Starting secondary namenodes [iz2ze49dsj767ouqcmxlqaz]
ERROR: Attempting to operate on hdfs secondarynamenode as root
ERROR: but there is no HDFS_SECONDARYNAMENODE_USER defined. Aborting operation.

(缺少用戶定義而造成的)因此編輯啟動和關閉

$ vim sbin/start-dfs.sh 
$ vim sbin/stop-dfs.sh

頂部空白處

HDFS_DATANODE_USER=root
HADOOP_SECURE_DN_USER=hdfs
HDFS_NAMENODE_USER=root
HDFS_SECONDARYNAMENODE_USER=root

start-yarn.sh出錯

Starting resourcemanager ERROR: Attempting to operate on yarn resourcemanager as root ERROR: but there is no YARN_RESOURCEMANAGER_USER defined. Aborting operation. Starting nodemanagers ERROR: Attempting to operate on yarn nodemanager as root ERROR: but there is no YARN_NODEMANAGER_USER defined. Aborting operation.

是因為缺少用戶定義造成的优乐棋牌app下载,所以分別編輯開始和關閉腳本

$ vim sbin/start-yarn.sh 
$ vim sbin/stop-yarn.sh 

頂部添加

YARN_RESOURCEMANAGER_USER=root
HADOOP_SECURE_DN_USER=yarn
YARN_NODEMANAGER_USER=root

請關注公眾號獲取更多資料



】【打印繁體】【】【】 【】【】【】 【關閉】 【返回頂部
上一篇第85課:基于HDFS的SparkStreamin.. 下一篇hive select報錯 Unable to deter..