赞
踩
问题:
ERROR: Attempting to operate on hdfs namenode as root
ERROR: but there is no HDFS_NAMENODE_USER defined. Aborting operation
解决方案:
在/hadoop/sbin路径下查找start-dfs.sh和stop-dfs.sh两个文件,在其顶部都添加上
#!/usr/bin/env bash
HDFS_DATANODE_USER=root
HADOOP_SECURE_DN_USER=hdfs
HDFS_NAMENODE_USER=root
HDFS_SECONDARYNAMENODE_USER=root
顺便在start-yarn.sh和stop-yarn.sh两个文件顶部也分别加上
#!/usr/bin/env bash
YARN_RESOURCEMANAGER_USER=root
HADOOP_SECURE_DN_USER=yarn
YARN_NODEMANAGER_USER=root
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。