【HBase工具】查看解析HFile
来源:互联网 发布:人工智能系统价格 编辑:程序博客网 时间:2024/05/16 19:20
查看HFile是HBase本身自带的一个很实用的工具
使用也很简单:
$ ${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
工作中用到过该工具的几个场景:
1.测试或应用中,发现数据正确性有误,可以使用该工具,看看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
工作中用到过该工具的几个场景:
1.测试或应用中,发现数据正确性有误,可以使用该工具,看看HFile中的真实数据
2.业务反映scan某表没反应,直到超时,服务端日志中无任何异常,后来直接分析HFile,发现用户设置了TTL,所有数据都已经过期了,所以scan变成了全表扫描了,orz。。。
http://zjushch.iteye.com/blog/1676675
0 0
- 【HBase工具】查看解析HFile
- HBase之HFile解析
- HBase之HFile解析
- hbase数据文件格式(HFile)解析
- HBase 维护--查看HLog和HFile
- HBASE 学习----第一篇--Hfile 解析
- HBase I/O: HFile
- hfile到hbase
- Hbase的Hfile存储
- hbase HFile V3介绍
- HBase StoreFile(HFile)
- HBase-mapreduce生成hfile
- HBase-Spark生成hfile
- HBase之HFile详解
- hbase中的HFile文件格式详解
- HBase I/O – HFile
- [HBase]KeyValue and HFile create
- HBase之HFile索引机制
- 命名规则
- java.util.ConcurrentModificationException详解
- 【笔记】用XML文件配置Hibernate
- Android碎片第四期
- hdoj-1757-A Simple Math Problem【矩阵的快速幂】
- 【HBase工具】查看解析HFile
- 在IE兼容模式下 提示JSON未定义
- 木兰花
- Unsupported major.minor version 51.0解决办法
- 基数排序
- Win 8.1 配置Java环境变量
- 谁说Source Insight只能看C盘的文件?我有妙招!
- linux下怎样删--开头的文件
- UITextField输入文字下浮问题及更改模态视图导航条样式