本文介绍了关于 hbase,zookeeper.MetaTableLocator:hbase:meta 验证失败,.NotServingRegionException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 hadoop2.7.3,Hbase 1.2.3,zookeeper 3.4.9.

I use hadoop2.7.3,Hbase 1.2.3, zookeeper 3.4.9.

每次我停止Hbase并重新启动它时,它都会抛出异常:

Each time I stop the Hbase and restart it,it will throw the exception:

  [hadoop01:16000.activeMasterManager] zookeeper.MetaTableLocator: Failed        verification of hbase:meta,,1 at address=hadoop05,16020,1478663588885, exception=org.apache.hadoop.hbase.NotServingRegionException: Region hbase:meta,,1 is not online on hadoop05,16020,1478664215143
at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:2922)
at org.apache.hadoop.hbase.regionserver.RSRpcServices.getRegion(RSRpcServices.java:1059)
at org.apache.hadoop.hbase.regionserver.RSRpcServices.getRegionInfo(RSRpcServices.java:1339)
at org.apache.hadoop.hbase.protobuf.generated.AdminProtos$AdminService$2.callBlockingMethod(AdminProtos.java:22233)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2180)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:112)
at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:133)
at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:108)
at java.lang.Thread.run(Thread.java:745)

我搜索了异常,但原因(即hdfs安全模式或服务器日期)都不满足我的情况.和zookeeper的日志:

I have search the exception,but the reasons(i.e,hdfs saftemode or about date of the servers) are all not satisfied my situation.and the zookeeper's log:

2016-11-09 03:34:49,900 [myid:2] - INFO  [ProcessThread(sid:2    cport:-1)::PrepRequestProcessor@649] - Got user-level KeeperException when processing sessionid:0x358483686110002 type:create cxid:0x1 zxid:0x100000040 txntype:-1 reqpath:n/a Error Path:/hbase/replication Error:KeeperErrorCode = NoNode for /hbase/replication
2016-11-09 03:34:50,810 [myid:2] - INFO  [ProcessThread(sid:2 cport:-1)::PrepRequestProcessor@649] - Got user-level KeeperException when processing sessionid:0x15848364a850001 type:create cxid:0x16 zxid:0x100000048 txntype:-1 reqpath:n/a Error Path:/hbase/replication/peers Error:KeeperErrorCode = NodeExists for /hbase/replication/peers
2016-11-09 03:34:55,378 [myid:2] - INFO  [ProcessThread(sid:2 cport:-1)::PrepRequestProcessor@649] - Got user-level KeeperException when processing sessionid:0x15848364a850000 type:delete cxid:0x5b zxid:0x100000049 txntype:-1 reqpath:n/a Error Path:/hbase/meta-region-server Error:KeeperErrorCode = NoNode for /hbase/meta-region-server
2016-11-09 03:34:56,677 [myid:2] - INFO  [ProcessThread(sid:2 cport:-1)::PrepRequestProcessor@649] - Got user-level KeeperException when processing sessionid:0x15848364a850001 type:setData cxid:0x2d zxid:0x10000004e txntype:-1 reqpath:n/a Error Path:/hbase/meta-region-server Error:KeeperErrorCode = NoNode for /hbase/meta-region-server
2016-11-09 03:34:57,556 [myid:2] - INFO  [ProcessThread(sid:2 cport:-1)::PrepRequestProcessor@649] - Got user-level KeeperException when processing sessionid:0x15848364a850000 type:create cxid:0x30c zxid:0x100000052 txntype:-1 reqpath:n/a Error Path:/hbase/table-lock/hbase:namespace Error:KeeperErrorCode = NoNode for /hbase/table-lock/hbase:namespace
2016-11-09 03:35:00,443 [myid:2] - INFO  [ProcessThread(sid:2 cport:-1)::PrepRequestProcessor@649] - Got user-level KeeperException when processing sessionid:0x15848364a850000 type:create cxid:0x330 zxid:0x100000062 txntype:-1 reqpath:n/a Error Path:/hbase/namespace/default Error:KeeperErrorCode = NodeExists for /hbase/namespace/default
2016-11-09 03:35:00,510 [myid:2] - INFO  [ProcessThread(sid:2 cport:-1)::PrepRequestProcessor@649] - Got user-level KeeperException when processing sessionid:0x15848364a850000 type:create cxid:0x333 zxid:0x100000064 txntype:-1 reqpath:n/a Error Path:/hbase/namespace/hbase Error:KeeperErrorCode = NodeExists for /hbase/namespace/hbase

hbase-sie.xml

The hbase-sie.xml

动物园.cfg

推荐答案

我也遇到了这个问题.首先你可以尝试修复数据

I also met this problem.first you can try to repair the data

bin/hbase 清理

用法:hbase clean (--cleanZk|--cleanHdfs|--cleanAll)选项:

Usage: hbase clean (--cleanZk|--cleanHdfs|--cleanAll) Options:

--cleanZk   cleans hbase related data from zookeeper.
--cleanHdfs cleans hbase related data from hdfs.
--cleanAll  cleans hbase related data from both zookeeper and hdfs.

此外,您可以删除整个动物园管理员的数据,可以通过 hbase-site.xml 或 zoo.cfg 配置,甚至是默认目录,您可以检查您的配置文件

also,you may just delete your whole zookeepers' data,which may be configured by hbase-site.xml or zoo.cfg,or even the default dirs, you can check your configuration files for that

这篇关于关于 hbase,zookeeper.MetaTableLocator:hbase:meta 验证失败,.NotServingRegionException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 15:35