Org.apache.hadoop.hbase.NotServingRegionException: Offline region: -ROOT -, 0 what is the cause of this error

Thank you for being interesting in my question :) when ever I run queries like scan, put, create for any table in the hbase shell, I get the following error. and the hbase shell gives a list of table results and a description of the tables .... so would you please help me remove this? And also please tell me the value of the structure -ROOT -, 0

About am versions using

HBase 0.92.1-cdh4.1.2 Hadoop 2.0.0-cdh4.1.2

ERROR: org.apache.hadoop.hbase.NotServingRegionException: org.apache.hadoop.hbase.NotServingRegionException: Region not online: -ROOT -, 0

+4
source share
3 answers

I had the same error. Zookeeper was processed by HBase. (It was not separate!)

So quick fix:

$ hbase zkcli zookeeper_cli> rmr /hbase/root-region-server 
+3
source

After clearing the zookeeper nodes, hbase started working normally :) what exactly I followed (this is not recommended, and you should have HBase and ZK first):

 ### shut down ZM and HBase 1) for each ZK node: su // login as root cd $ZOOKEEPER_HOME cp data/myid myid // backup existing myid file to ZooKeeper home folder rm data/* -Rf rm dadalog/* -Rf mkdir -p data mkdir -p datalog cp myid data/myid // restore the myid backup so no need to recreate myid again 2) for each ZK node: (start ZK ) 3) finally (start HBase) 

With data cleansing and data logging, you should have a very clean ZooKeeper. Hope this helps and good luck. thanks

0
source
 My Error was ERROR: org.apache.hadoop.hbase.NotServingRegionException: Region ROLE,,1457743249518.221f6f7fdacacbe179674267f8d06575. is not online on ddtmwutelc3ml01.azure-dev.us164.corpintra.net,16020,1459486618702 at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:2898) at org.apache.hadoop.hbase.regionserver.RSRpcServices.getRegion(RSRpcServices.java:947) at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:2235) at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:32205) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2114) at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:101) at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130) at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107) at java.lang.Thread.run(Thread.java:745) 

Resolution:

run the command below

 $ hbase zkcli zookeeper_cli> rmr /hbase/root-region-server 

then

Stop hbase and zk
backup mydir from cd / hadoop / zookeeper
delete everything from cd / hadoop / zookeeper
restart zookeeper then hbase

0
source

All Articles