9

How can I print out only the row keys in a particular HBase table, using the hbase shell? The 'scan' command prints out all columns.

1 Answer 1

19

One possible method:

count 'table_name', INTERVAL=> 1
1
  • There's a performance concern here - we can possibly print billions of rows here depending on what's in the table. Jan 7, 2016 at 15:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.