Question : You have created an advertising application based on HBase called Acmeshell in Acmeshell you wish to insert text using the add method, with the add text you also want to store the time when the click happened on the advertisement, in HBase select the correct syntax so that you can also store click timestamp using the Put class? 1. put.add(column_family, column_qualifier, data, click_timestamp)
HBase uses the Put class to write (store data) to an HBase row.
The Put class has add() method with a timestamp input parameter.
The add() method also takes the input parameters: column family, column qualifier, timestamp,and data.
Used to perform Put operations for a single row.
To perform a Put, instantiate a Put object with the row to insert to and for eachumn to be inserted, execute add or add if setting the timestamp. public Put add(byte[] family, byte[] qualifier, long ts, byte[] value) Add the specified column and value, with the specified timestamp as its version to this Put operation. Parameters: family - family name qualifier - column qualifier ts - version timestamp value - column value
Question :
To drop a table it must be first disable ? 1. True 2. False
Select the correct option for HBase table 1. Physically stored on a per-column family basis. 2. Empty cells are not stored 3. Each cell has a timestamp 4. Multiple version of a cell can exist 5. All of the above
When HBase is compared with RDBMS then which statement is true. 1. HBase automatically partitions data in regions 2. HBase does not support explicit joins 3. A lookup by row key implicitly joins data from column families if necessary 4. All of the above Solution : 15