I am using cbt tool
to inspect the data of some tables. I want to know what are the typical fields in the rows of my table. The only way to do this is to use cbt read
. But cbt read
select massive amounts of rows, which I don't want to do. I just want to find a few row keys so I can run cbt lookup <row-key>
with them.
I'm doing this because BigTable is simply an enterprise-class HBase, thus it is a schema-less DB. The only way to find out the columns of the table is to inspect the records.
To avoid massive read amount of rows and select few row keys only, you can use
[start=<row-key>]
and[end=<row-key>]
or withcount=<n>
to limit the number of rows read, here's the documentation.For example, using
[start=<row-key>]
and[end=<row-key>]
:output:
with
count=<n>
:output: