ERROR:master启动报错: Attempting to operate on hdfs namenode as root

[root@master hadoop]# sbin/start-all.sh Starting namenodes on [master]
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 [master] ERROR: Attempting to operate on
hdfs secondarynamenode as root ERROR: but there is no
HDFS_SECONDARYNAMENODE_USER defined. Aborting operation. 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.

你可能感兴趣的:(Docker,hadoop,linux)