![cover](https://img-blog.csdnimg.cn/8613dcec28f24040ae8667b2a44a136c.png)
解决:ERROR: Attempting to operate on hdfs journalnode as rootERROR: but there is no HDFS_JOURNALNODE_
问题描述:安装Hadoop3X HA完成后为了验证安装开启Hadoop执行:start-all.sh报错:ERROR: Attempting to operate on hdfs namenode as rootERROR: but there is no HDFS_NAMENODE_USER defined. Aborting operation.ERROR: Attempting to ope
问题描述:安装Hadoop3X HA完成后为了验证安装开启Hadoop
执行:start-all.sh
报错:
ERROR: Attempting to operate on hdfs namenode as root
ERROR: but there is no HDFS_NAMENODE_USER defined. Aborting operation.
ERROR: Attempting to operate on hdfs datanode as root
ERROR: but there is no HDFS_DATANODE_USER defined. Aborting operation.
ERROR: Attempting to operate on hdfs secondarynamenode as root
ERROR: but there is no HDFS_SECONDARYNAMENODE_USER defined. Aborting operation.
ERROR: Attempting to operate on hdfs journalnode as root
ERROR: but there is no HDFS_JOURNALNODE_USER defined. Aborting operation.
ERROR: Attempting to operate on hdfs journalnode as root
ERROR: but there is no YARN_RESOURCEMANAGER_USER Aborting operation.
ERROR: Attempting to operate on hdfs journalnode as root
ERROR: but there is no YARN_NODEMANAGER_USER Aborting operation.
错误原因:
试图以根用户身份在hdfs namenode上操作,但是没有定义HDFS _ NAMENODE _用户。中止操作。
解决:
在环境变量中在添加:
1.进入环境变量
vi ~/.bash_profile
2.添加:
export HDFS_NAMENODE_USER=root
export HDFS_DATANODE_USER=root
export HDFS_JOURNALNODE_USER=root
export HDFS_SECONDARYNAMENODE_USER=root
export YARN_RESOURCEMANAGER_USER=root
export YARN_NODEMANAGER_USER=root
3.环境变量生效
source ~/.bash_profile
完成!成功解决!!!
更多推荐
所有评论(0)