Tag Archives: Cloud computing and big data

Error in configuring Hadoop 3.1.3: attempting to operate on yarn nodemanager as root error

This may occur when HDFS and yarn services are turned on, and when HDFS and yarn services are turned off using scripts, the

solution may also occur

Add the following parameters to the top of start-dfs.sh and stop-dfs.sh (in SBIN of Hadoop installation directory)

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

Add the following parameters to the top of start-yarn.sh and stop-yarn.sh (in SBIN of Hadoop installation directory)

YARN_RESOURCEMANAGER_USER=root
HADOOP_SECURE_DN_USER=yarn
YARN_NODEMANAGER_USER=root

Successfully solved the problem

hbase ERROR org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

Hbase error:
hbase(main):001:0> status
ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is the initializing
the at org.. Apache hadoop, hbase. Master. HMaster. CheckInitialized (HMaster. Java: 2293)
the at org.apache.hadoop.hbase.master.MasterRpcServices.getClusterStatus(MasterRpcServices.java:777)
…..
Solution:
log in zookeeper client and delete /hbase
#./bin/zkCli. Sh
[zk: localhost:2181(CONNECTED) 1] RMR /hbase
Then restart the HBase service