Created on 05-11-2017 10:48 PM - edited 09-16-2022 04:35 AM
Hi,
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-5.10.0.0
--------------------------------------------------------------------------------------------------------------------------------
hbase(main):001:0> list
TABLE
ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet
at org.apache.hadoop.hbase.master.HMaster.checkServiceStarted(HMaster.java:2322)
at org.apache.hadoop.hbase.master.MasterRpcServices.isMasterRunning(MasterRpcServices.java:937)
at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:55654)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2170)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:109)
at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:185)
at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:165)
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?
Created 05-21-2017 03:38 AM
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
Created 09-08-2018 05:45 AM
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.