hbase region下线故障修复

 故障:

1.8.7-p357 :023 >   get 'GPSDATA','42dc_1698207629_8482964999'
COLUMN                                CELL                                                                                                      

ERROR: org.apache.hadoop.hbase.NotServingRegionException: Region GPSDATA,42dc_1698207629_8482964999,1536715645567.fc4b57ddf89a18f9931446da1231fe09. is not online on slave6,16020,1543209275842
    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.get(RSRpcServices.java:2026)
    at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:33644)
    at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2196)
    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

$ hbase hbck -details "default:GPSDATA"

结果一切正常,尝试修复

1.禁用表
$ hbase shell
1.8.7-p357 :023 > disable 'GPSDATA'

2.使用hbase修复命令
$ hbase hbck -fixMeta

3.启用表
$ hbase shell
1.8.7-p357 :023 > disable 'GPSDATA'

成功修复!

你可能感兴趣的:(hbase)