Question : In HBase, lookup of a row is done by single key only? 1. True 2. False
Correct Answer : 1
Explanation: In HBase Table row keys are also byte arrays so almost anything can serve as a row key from strings to binary representations of longs or even serialized data structures. Rows in HBase tables are sorted by row key. The sort is byte-ordered. All table accesses are via the table row key : its primary key.
Refer HadoopExam.com Recorded Training Module : 18
Question : Hbase supports the transaction for single row ? 1. True 2. False
Correct Answer : 1
Apache HBase : HBase is the Hadoop database - A NoSQL datastore - Can store massive amounts of data - Gigabytes, terabytes, and even petabytes of data in a table - Scales to provide very high write throughput - Hundreds of thousands of inserts per second - Copes well with sparse data - Tables can have many thousands of columns - Even if most columns are empty for any given row - Has a very constrained access model - Insert a row, retrieve a row, do a full or partial table scan - Only one column (the row key ) is indexed - Does not support multi row transaction but single row transactions are supported
Refer HadoopExam.com Recorded Training Module : 18
Question : Which are the supported method to access the data from HBase
1. get 2. put 3. scan 4. 1,2 and 3 are correct 5. It has to be accessed by Query only
Correct Answer : 4
There are four primary data model operations available in HBase Get, Put, Scan, and Delete
Get : returns attributes for a specified row Put : either adds new rows to a table (if the key is new) or can update existing rows (if the key already exists). Scan : scan allow iteration over multiple rows for specified attributes Delete : removes a row from a table
Refer HadoopExam.com Recorded Training Module : 18