Your client application calls the following method for all puts to the single table notifications: 'put.setWriteToWAL, (false); One region, region1, for the notifications table is assigned to RegionServer rs1. Which of the following statements describes the result of RegionServer rs1 crashing?
Explanation: What role does 'setWriteToWAL(false)' play? HBase uses a write ahead log, if you don't write to it you will lose all the data that's only in the memstores when a region server fails. This setting is useful for importing a lot of data.
Question :
You have a key-value pair size of l00 bytes. You increase your HFile block size from its default 64k. What results from this change?
1. scan throughput increases and random-access latency decreases 2. scan throughput decreases and random-access latency increases 3. Access Mostly Uused Products by 50000+ Subscribers 4. scan throughput increases and random-access latency increases
Explanation: Larger block size is preferred if files are primarily for sequential access. Smaller blocks are good for random access, but require more memory to hold the block index, and may be slower to create
Question :
You have tin linage table live in production. The table users (timestamp) as the rowkey. You want to change the existing rowkeys to (userid)(timestamp). Which of the following should you do?
1. Modify the client application to write to both the old table and a new table while migrating the old data separately 2. Use the ALTER table command to modify the rowkeys 3. Access Mostly Uused Products by 50000+ Subscribers 4. Add a new column to store the userid
Explanation: Rowkeys cannot be changed. The only way they can be "changed" in a table is if the row is deleted and then re-inserted. This is a fairly common question on the HBase dist-list so it pays to get the rowkeys right the first time (and/or before you've inserted a lot of data).
1. Column names known than use getValue or getFamilyMap to retrieve values 2. if not known use list or raw to iterate over the columns 3. Access Mostly Uused Products by 50000+ Subscribers 4. 1 and 3 are correct 5. 1 and 2 are correct