我使用Hbase和Hue创建了一些表格。重新启动群集后,我无法再打开/创建表(它正在等待处理)。我也尝试了Hbase shell但是在尝试扫描表时出现了这个错误
ERROR: org.apache.hadoop.hbase.NotServingRegionException: Region hbase:meta,,1 is not online
at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:2590)
at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:3957)
at org.apache.hadoop.hbase.regionserver.HRegionServer.get(HRegionServer.java:2738)
at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:26925)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2175)
at org.apache.hadoop.hbase.ipc.RpcServer$Handler.run(RpcServer.java:1879)
在这里你有一个例外,我在Hue尝试创建一个新表时会遇到:
Mon Jun 30 14:50:04 UTC 2014, org.apache.hadoop.hbase.client.RpcRetryingCaller@42af4b1d, org.apache.hadoop.hbase.NotServingRegionException: org.apache.hadoop.hbase.NotServingRegionException: Region hbase:meta,,1 is not online at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:2590) at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:3957) at org.apache.hadoop.hbase.regionserver.HRegionServer.scan(HRegionServer.java:2982) at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:26929) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2175) at org.apache.hadoop.hbase.ipc.RpcServer$Handler.run(RpcServer.java:1879) Mon Jun 30 14:50:05 UTC 2014, org.apache.hadoop.hbase.client.RpcRetryingCaller@42af4b1d, org.apache.hadoop.hbase.NotServingRegionException: org.apache.hadoop.hbase.NotServingRegionException: Region hbase:meta,,1 is not online at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:2590) at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:3957) at org.apache.hadoop.hbase.regionserver.HRegionServer.scan(HRegionServer.java:2982) at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:26929) at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2175)
答案 0 :(得分:0)
关闭ZM和HBase
1)对于每个ZK节点:su //以root身份登录cd $ ZOOKEEPER_HOME cp data / myid myid //将现有的myid文件备份到ZooKeeper的主文件夹rm data / * -Rf rm dadalog / * -Rf mkdir -p data mkdir -p datalog cp myid data / myid //恢复myid备份所以不需要再次重新创建myid
2)对于每个ZK节点:(启动ZK)
3)最后(启动HBase)
如果您的配置不正确,有时会抛出此错误。 通过清除数据和数据记录,您应该拥有一个非常干净的ZooKeeper。希望这些帮助和好运。感谢