Support Questions

Find answers, ask questions, and share your expertise
Celebrating as our community reaches 100,000 members! Thank you!

hbase shell error

New Contributor



when I am trying to execute commands list or list_namespace in hbase shell, I am getting following error. I am using cloudera-quickstart-vm-



hbase(main):001:0> list

ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet
    at org.apache.hadoop.hbase.master.HMaster.checkServiceStarted(
    at org.apache.hadoop.hbase.master.MasterRpcServices.isMasterRunning(
    at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(
    at org.apache.hadoop.hbase.ipc.RpcExecutor$
    at org.apache.hadoop.hbase.ipc.RpcExecutor$

Here is some help for this command:
List all tables in hbase. Optional regular expression parameter could
be used to filter the output. Examples:

  hbase> list
  hbase> list 'abc.*'
  hbase> list 'ns:abc.*'
  hbase> list 'ns:.*'




On executing sudo jps shows the following:

[cloudera@quickstart ~]$ sudo jps
8011 Bootstrap
10597 Jps
6706 RunJar
5619 SecondaryNameNode
7805 Bootstrap
6100 ResourceManager
5290 DataNode
7106 Bootstrap
5395 JournalNode
6599 RunJar
5803 JobHistoryServer
8075 -- process information unavailable
8038 -- process information unavailable
6384 RESTServer
5484 NameNode
9969 HMaster
5214 QuorumPeerMain
6519 ThriftServer
10180 HRegionServer
7132 HistoryServer
5747 Bootstrap
5886 NodeManager


I have executed following commands to see if the issue can be fixed but the issue is still there.

sudo service hbase-master restart

sudo service hbase-regionserver restart


Can you please guide to resolve the issue?




you might have a corrupt metadata . 

Stop the hbase server  and run the metarepair 

Read as to what it does before run the below 

hbase org.apache.hadoop.hbase.util.hbck.OfflineMetaRepair

New Contributor

It seems your namenode or datanode is in safemode.
So we need to leave the safe mode to insert data in hdfs or hbase table in hdfs. We can use following command to leave the safe mode of the namenode or datanode:

hadoop@Sanjeev:~$ hdfs dfsadmin -safemode leave

On successful execution this message is shown:

Safe mode is OFF

And after this above error does not occur and the hbase shell runs properly.