有什么命令可以了解Hbase的表格大小吗? [英] Is there any command that I can learn the size of a table at Hbase?
问题描述
是否有任何命令可以了解Hbase的表格大小?
我使用Hbase来保存来自Nutch的抓取数据。
hadoop fs -du [路径]
[path]
必须替换为 hbase.rootdir $ c的值$ c $> hbase-site.xml
输出结果如下所示:
$ hadoop fs -du / hbase
4056 hdfs://127.0.0.1:9000 / hbase / -ROOT-
22307 hdfs://127.0.0.1:9000 / hbase / .META。
0 hdfs://127.0.0.1:9000 / hbase / .corrupt
0 hdfs://127.0.0.1:9000 / hbase / .logs
0 hdfs://127.0.0.1:9000 / hbase / .oldlogs
1716 hdfs://127.0.0.1:9000 / hbase / Table1
1472 hdfs://127.0.0.1:9000 / hbase / Table2
1498 hdfs://127.0.0.1:9000 / hbase / Table3
1320 hdfs://127.0。 0.1:9000 / hbase / SampleTable
此处显示的大小以字节为单位。
如果您在本地文件系统(OS文件系统)上运行hbase,那么您可以使用普通的 du
命令。
这会给你一个关于Hbase表格大小的粗略想法。
Is there any command that I can learn the size of a table at Hbase? I use Hbase to hold my crawl data from Nutch.
If you are running hbase on hadoop the following command can be used
hadoop fs -du [path]
[path]
has to be replaced with the value of hbase.rootdir
in hbase-site.xml
the output will look like:
$ hadoop fs -du /hbase
4056 hdfs://127.0.0.1:9000/hbase/-ROOT-
22307 hdfs://127.0.0.1:9000/hbase/.META.
0 hdfs://127.0.0.1:9000/hbase/.corrupt
0 hdfs://127.0.0.1:9000/hbase/.logs
0 hdfs://127.0.0.1:9000/hbase/.oldlogs
1716 hdfs://127.0.0.1:9000/hbase/Table1
1472 hdfs://127.0.0.1:9000/hbase/Table2
1498 hdfs://127.0.0.1:9000/hbase/Table3
1320 hdfs://127.0.0.1:9000/hbase/SampleTable
The size displayed here is in bytes.
If you are running hbase on local filesystem (OS filesystem) then you can use normal du
command.
This will give you a rough idea about size of the table in Hbase.
这篇关于有什么命令可以了解Hbase的表格大小吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!