ERROR: but there is no HDFS_JOURNALNODE_USER defined. Aborting operation.

在搭建hadoop-HA集群时遇到ERROR: but there is no HDFS_JOURNALNODE_USER defined的问题。通过在sbin目录的start-dfs.sh和stop-dfs.sh脚本中添加相关字段并同步到集群,然后重新启动服务,错误得到解决。后续可以在Zookeeper中查看HA监控信息。
摘要由CSDN通过智能技术生成
[root@hadoop01 etc]# stop-dfs.sh
WARNING: HADOOP_SECURE_DN_USER has been replaced by HDFS_DATANODE_SECURE_USER. Using value of HADOOP_SECURE_DN_USER.
Stopping namenodes on [hadoop01 hadoop02 hadoop03]
Stopping datanodes
Stopping journal nodes [hadoop03 hadoop02 hadoop01]
ERROR: Attempting to operate on hdfs journalnode as root
ERROR: but there is no HDFS_JOURNALNODE_USER defined. Aborting operation.
Stopping ZK Failover Controllers on NN hosts [hadoop01 hadoop02 hadoop03]
ERROR: Attempting to operate on hdfs zkfc as root
ERROR: but there is no HDFS_ZKFC_USER defined. Aborting operation.

在搭建hadoop-HA高可用性集群,搭建完成启动测试时报如上的错误,我的解决方案是:
在sbin目录下编辑start-dfs.sh和stop-dfs.sh脚本,增加如下字段:

HDFS_JOURNALNODE_USER=root
HDFS_ZKFC_USER=root

同步至集群:

xsync sbin

重新启动:start-dfs.sh

[root@hadoop01 sbin]# start-dfs.sh
WA
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值