You have an “Employees” table in HBase. The Row Keys are the employees’ IDs. You would like
to retrieve all employees who have an employee ID between ‘user_100’ and ‘user_110’. The shell
command you would use to complete this is:
A.
scan ‘Employees’, {STARTROW => ‘user_100’, STOPROW => ‘user_111’}
B.
get ‘Employees’, {STARTROW => ‘user_100’, STOPROW => ‘user_110’}
C.
scan ‘Employees’, {STARTROW => ‘user_100’, SLIMIT => 10}
D.
scan ‘Employees’, {STARTROW => ‘user_100’, STOPROW => ‘user_110’}
Explanation:
public Scan(byte[] startRow,
byte[] stopRow)
Create a Scan operation for the range of rows specified.
Parameters:
startRow – row to start scanner at or after (inclusive)
stopRow – row to stop scanner before (exclusive)
Reference:o rg.apache.hadoop.hbase.client, Class Scan
Correct answer is D
0
0