HBASE 查看表记录数

命令:hbase   org.apache.hadoop.hbase.mapreduce.RowCounter  '表名'

 

输出:

INFO  [main] mapreduce.Job:  map 100% reduce 0%
INFO  [main] mapreduce.Job: Job job_1488875331552_130163 completed successfully
INFO  [main] mapreduce.Job: Counters: 31
        File System Counters
                FILE: Number of bytes read=0
                FILE: Number of bytes written=167892
                FILE: Number of read operations=0
                FILE: Number of large read operations=0
                FILE: Number of write operations=0
                HDFS: Number of bytes read=95
                HDFS: Number of bytes written=0
                HDFS: Number of read operations=1
                HDFS: Number of large read operations=0
                HDFS: Number of write operations=0
        Job Counters 
                Launched map tasks=1
                Other local map tasks=1
                Total time spent by all maps in occupied slots (ms)=322947
                Total time spent by all reduces in occupied slots (ms)=0
                Total time spent by all map tasks (ms)=322947
                Total vcore-seconds taken by all map tasks=322947
                Total megabyte-seconds taken by all map tasks=661395456
        Map-Reduce Framework
                Map input records=31959661
                Map output records=0
                Input split bytes=95
                Spilled Records=0
                Failed Shuffles=0
                Merged Map outputs=0
                GC time elapsed (ms)=1351
                CPU time spent (ms)=62460
                Physical memory (bytes) snapshot=250777600
                Virtual memory (bytes) snapshot=3830263808
                Total committed heap usage (bytes)=215482368
        org.apache.hadoop.hbase.mapreduce.RowCounter$RowCounterMapper$Counters
                ROWS=31959661 //总记录数
        File Input Format Counters 
                Bytes Read=0
        File Output Format Counters 
                Bytes Written=0

 

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值