linux - HBase shell命令获取特定表的大小

标签 linux hbase

如何从 HBase shell 获取特定 HBase 表的大小?

最佳答案

数据存在于目录中的 hdfs 上

hdfs dfs -ls  /hbase/data/

HDFS 表的大小

hdfs dfs -du -h  /hbase/data/<UserName>

用于查找特定表中的行数

hbase org.apache.hadoop.hbase.mapreduce.RowCounter 'tableName'

counter can be verified from 
org.apache.hadoop.hbase.mapreduce.RowCounter$RowCounterMapper$Counters

OR counter from the Hbase shell
hbase(main):001:0> count 'tablename'

关于linux - HBase shell命令获取特定表的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42267991/

相关文章:

linux - 如何从 iBeacon/BLE 检索广告负载

linux - 升级CentOS7.0内核版本时,重启出错

java - 将 protobuf3 与一些依赖于 Java 中的 protobuf2 的库一起使用

hadoop - 数据格式和数据库选择 Spark/hadoop

hadoop - Hadoop 1.0.3 的 HBase 配置

linux - 来自外部源的 Makefile 调用

linux - BASH 从字符串中排除特定字符

linux - 为什么 vim 默认连接到 X?

Hive 外部表添加新列

java - 设置 hadoop 任务/节点数