关于hbase修复

来源:互联网 发布:大数据世界txt下载 编辑:程序博客网 时间:2024/04/20 03:19

hbase hbck 检查hbase状态

常规用repair即可解决

hbase hbck -repair

相当于-fixAssignments -fixMeta -fixHdfsHoles -fixHdfsOrphans -fixHdfsOverlaps -fixVersionFile -sidelineBigOverlaps

但是有时候-repair修复不成功
hbase hbck

2 inconsistencies detected.Status: INCONSISTENT

上翻日志,可以看到

2017-11-24 13:50:10,606 INFO  [main] util.HBaseFsck: Loading regionsinfo from the hbase:meta tableERROR: Empty REGIONINFO_QUALIFIER found in hbase:metaERROR: Empty REGIONINFO_QUALIFIER found in hbase:metaNumber of empty REGIONINFO_QUALIFIER rows in hbase:meta: 2

空行错误
执行 hbase hbck -fixEmptyMetaCells
hbase hbck

0 inconsistencies detected.Status: OK

成功

原创粉丝点击