Reply
New Contributor
Posts: 1
Registered: ‎05-11-2017

hbase shell error

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?

 

Champion
Posts: 215
Registered: ‎05-16-2016

Re: hbase shell error

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
Announcements