打赏

Hbase查看解析HFile

使用HBase自带的命令参数查看HFile:

${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile 
usage: HFile  [-a] [-b] [-e] [-f <arg>] [-k] [-m] [-p] [-r <arg>] [-v]


-a,--checkfamily    Enable family check
-b,--printblocks    Print block index meta data
-e,--printkey       Print keys
-f,--file <arg>     File to scan. Pass full-path; e.g.
                     hdfs://a:9000/hbase/.META./12/34
-k,--checkrow       Enable row order check; looks for out-of-order keys
-m,--printmeta      Print meta data of file
-p,--printkv        Print key/value pairs
-r,--region <arg>   Region to scan. Pass region name; e.g. '.META.,,1'
-v,--verbose        Verbose output; emits file and meta data delimiters

 

posted @ 2022-03-03 15:20  不像话  阅读(150)  评论(0编辑  收藏  举报