- count rows of a table
hbase org.apache.hadoop.hbase.mapreduce.RowCounter <tablename>
- count message of a topic
./bin/kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list <broker>: <port> --topic <topic-name> --time -1 --offsets 1 | awk -F ":" '{sum += $3} END {print sum}'