for key, data in table.scan():
print('Found: {}, {}'.format(key, data))
I have an HBase table that I need to scan and print the timestamp. I have written the above code but it only produces output like...
Found: b'row1', {b'cf1:col':(b'value')}
But I want output like...
Found: b'row1', {b'cf1:col':(b'value', timestamp)}
Any idea guys?
By default, HBase does not include timestamps in the results you return. You can use HappyBase to retrieve them. To get them, your application needs to have
timestamps_include
,And after that, you can use,