Support Questions

Find answers, ask questions, and share your expertise

Get or scan to use for retrieving the data,when i know the rowkey in hbase.

avatar
Explorer
 
1 ACCEPTED SOLUTION

avatar

When you know the row key you can use Get. HBase should automatically convert the Scan with same start and end key as get. With the get the block reads in a HFile are positional reads(better for random reads) than seek + read(better for scanning).

View solution in original post

1 REPLY 1

avatar

When you know the row key you can use Get. HBase should automatically convert the Scan with same start and end key as get. With the get the block reads in a HFile are positional reads(better for random reads) than seek + read(better for scanning).