PrepAway - Latest Free Exam Questions & Answers

The shell command you would use to complete this is:

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:

PrepAway - Latest Free Exam Questions & Answers

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

One Comment on “The shell command you would use to complete this is:


Leave a Reply to networkmanagers Cancel reply

Your email address will not be published. Required fields are marked *