如何程序读取Hbase中hfile文件的内容

如题所述

第1个回答  2017-04-04
[baoniu@search0001 ~]$ hbase hfile
2 usage: HFile [-a] [-b] [-e] [-f <arg>] [-k] [-m] [-p] [-r <arg>] [-s] [-v]
3 [-w <arg>]
4 -a,--checkfamily Enable family check
5 -b,--printblocks Print block index meta data
6 -e,--printkey Print keys
7 -f,--file <arg> File to scan. Pass full-path; e.g.
8 hdfs://a:9000/hbase/hbase:meta/12/34
9 -k,--checkrow Enable row order check; looks for out-of-order
10 keys
11 -m,--printmeta Print meta data of file
12 -p,--printkv Print key/value pairs
13 -r,--region <arg> Region to scan. Pass region name; e.g.
14 'hbase:meta,,1'
15 -s,--stats Print statistics
16 -v,--verbose Verbose output; emits file and meta data
17 delimiters
18 -w,--seekToRow <arg> Seek to this row and print all the kvs for this本回答被网友采纳
相似回答