Skip to main content
Amandi
Silver ⭐️⭐️⭐️
September 23, 2024
Solved

Issue with HBase HMaster Disappearing When Starting HBase Shell in Pseudo-Distributed Mode

Dear Cloudera Community,

I am currently testing HBase for bulk loading purposes, and for this, we use the pseudo-distributed mode (single-host standalone) as our configuration. After completing all the configurations, I executed the jps command, which displayed all the necessary processes for testing. 

[super@dc1-apache-hbase bin]$ jps
1119857 Jps
1118448 NodeManager
1119235 HQuorumPeer
1117730 NameNode
1117863 DataNode
1119627 HRegionServer
1118125 SecondaryNameNode
1119405 HMaster
1118332 ResourceManager

Additionally, I did not use Zookeeper manually for the process; instead, I used export HBASE_MANAGES_ZK=true.

However, once I enter the HBase shell, the HMaster process disappears, and I encounter the following error message:
"ERROR: KeeperErrorCode = NoNode for /hbase/master"

[super@dc1-apache-hbase conf]$ jps
1122225 Jps
1118448 NodeManager
1121283 HQuorumPeer
1122019 JarBootstrapMain
1117730 NameNode
1117863 DataNode
1121675 HRegionServer
1118125 SecondaryNameNode
1118332 ResourceManager

I have attached all the configuration files and version details that I used for this setup. Could you please assist me in resolving this issue?

Hadoop Version: 3.3.6

Hbase Version: 2.5.10

Java Version:

openjdk version "1.8.0_422"
OpenJDK Runtime Environment (build 1.8.0_422-b05)
OpenJDK 64-Bit Server VM (build 25.422-b05, mixed mode)

hbase-site.xml:

<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>

<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/super/zookeeper</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>localhost</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:8030/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>

hbase-env.sh

# The java implementation to use. Java 1.8+ required.
# export JAVA_HOME=/usr/java/jdk1.8.0/
export JAVA_HOME=/usr/local/java-1.8.0-openjdk-1.8.0.422.b05-2.el9.x86_64

# Extra Java CLASSPATH elements. Optional.
# export HBASE_CLASSPATH=
export HBASE_CLASSPATH=$HADOOP_CONF_DIR:$HBASE_CLASSPATH

Thank you for your support.

shubham_sharma
Gold ⭐️⭐️⭐️
September 25, 2024

Hi @Amandi 

You have to add -

export HBASE_MANAGES_ZK=false if you want to manage your own zookeeper and run hbase in distributed mode.

If you do not run hbase in distributed mode, hbase will start its own zookeeper.

Error indicates that zookeeper do not have the znodes /hbase/master created in zookeeper

"ERROR: KeeperErrorCode = NoNode for /hbase/master"

3 replies

DianaTorres
Community Manager
Community Manager
September 23, 2024

Hi @shubham_sharma @aquilodran @pajoshi Do you have some insights here? Thanks!

Translate
Regards, Diana Torres, Senior Community Moderator
shubham_sharma
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
September 25, 2024

Hi @Amandi 

You have to add -

export HBASE_MANAGES_ZK=false if you want to manage your own zookeeper and run hbase in distributed mode.

If you do not run hbase in distributed mode, hbase will start its own zookeeper.

Error indicates that zookeeper do not have the znodes /hbase/master created in zookeeper

"ERROR: KeeperErrorCode = NoNode for /hbase/master"

Translate
DianaTorres
Community Manager
Community Manager
October 1, 2024

@Amandi Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks.

Translate
Regards, Diana Torres, Senior Community Moderator