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

 

你可能感兴趣的:(HBase)