Failed verification of hbase:meta

Submitted by Lizhe on Fri, 05/05/2017 - 22:59

 

 

2017-05-05 22:54:39,034 INFO  [lzvm:16000.activeMasterManager] master.MasterFileSystem: Log folder hdfs://lzvm:9000/hbase/WALs/lzvm,16020,1493996073620 belongs to an existing region server
2017-05-05 22:54:39,107 INFO  [lzvm:16000.activeMasterManager] zookeeper.MetaTableLocator: Failed verification of hbase:meta,,1 at address=lzvm,16020,1493995954744, exception=org.apache.hadoop.hbase.NotServingRegionException: Region hbase:meta,,1 is not online on lzvm,16020,1493996073620
        at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:2942)
        at org.apache.hadoop.hbase.regionserver.RSRpcServices.getRegion(RSRpcServices.java:1072)
        at org.apache.hadoop.hbase.regionserver.RSRpcServices.getRegionInfo(RSRpcServices.java:1356)
        at org.apache.hadoop.hbase.protobuf.generated.AdminProtos$AdminService$2.callBlockingMethod(AdminProtos.java:22233)
        at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2188)
        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)
 

停止Hbase服务时导致zookeeper的meta数据丢失或损毁所致

停止HBase服务,停止ZooKeeper服务

把zookeeper的每个节点的zoo.cfg指定的dataDir=/hadoop/zookeeper-data目录的文件清除掉

如果使用的是HBase自带的zookeeper, 需要清空 hbase-site.xml 配置下的目录

        <property>
                <name>hbase.zookeeper.property.dataDir</name>
                <value>/download/hbase-1.2.5/tmp</value>
        </property>
 

然后重启zookeeper,再重启hbase