Hadoop Questions and Answers – Metrics in Hbase

This set of Interview Questions & Answers focuses on “Metrics in Hbase”.

1. _______ can change the maximum number of cells of a column family.
a) set
b) reset
c) alter
d) select
View Answer

Answer: c
Explanation: Alter is the command used to make changes to an existing table.

2. Point out the correct statement.
a) You can add a column family to a table using the method addColumn()
b) Using alter, you can also create a column family
c) Using disable-all, you can truncate a column family
d) None of the mentioned
View Answer

Answer: a
Explanation: Columns can also be added through HbaseAdmin.

3. Which of the following is not a table scope operator?
a) MEMSTORE_FLUSH
b) MEMSTORE_FLUSHSIZE
c) MAX_FILESIZE
d) All of the mentioned
View Answer

Answer: a
Explanation: Using alter, you can set and remove table scope operators such as MAX_FILESIZE, READONLY, MEMSTORE_FLUSHSIZE, DEFERRED_LOG_FLUSH, etc.

4. You can delete a column family from a table using the method _________ of HBAseAdmin class.
a) delColumn()
b) removeColumn()
c) deleteColumn()
d) all of the mentioned
View Answer

Answer: c
Explanation: Alter command also can be used to delete a column family.

advertisement
advertisement

5. Point out the wrong statement.
a) To read data from an HBase table, use the get() method of the HTable class
b) You can retrieve data from the HBase table using the get() method of the HTable class
c) While retrieving data, you can get a single row by id, or get a set of rows by a set of row ids, or scan an entire table or a subset of rows
d) None of the mentioned
View Answer

Answer: d
Explanation: You can retrieve an HBase table data using the add method variants in Get class.

6. __________ class adds HBase configuration files to its object.
a) Configuration
b) Collector
c) Component
d) None of the mentioned
View Answer

Answer: a
Explanation: You can create a configuration object using the create() method of the HbaseConfiguration class.

7. The ________ class provides the getValue() method to read the values from its instance.
a) Get
b) Result
c) Put
d) Value
View Answer

Answer: b
Explanation: Get the result by passing your Get class instance to the get method of the HTable class. This method returns the Result class object, which holds the requested result.

8. ________ communicate with the client and handle data-related operations.
a) Master Server
b) Region Server
c) Htable
d) All of the mentioned
View Answer

Answer: b
Explanation: Region Server handle read and write requests for all the regions under it.

advertisement

9. _________ is the main configuration file of HBase.
a) hbase.xml
b) hbase-site.xml
c) hbase-site-conf.xml
d) none of the mentioned
View Answer

Answer: b
Explanation: Set the data directory to an appropriate location by opening the HBase home folder in /usr/local/HBase.

10. HBase uses the _______ File System to store its data.
a) Hive
b) Imphala
c) Hadoop
d) Scala
View Answer

Answer: c
Explanation: The data storage will be in the form of regions (tables). These regions will be split up and stored in region servers.

advertisement

Sanfoundry Global Education & Learning Series – Hadoop.

Here’s the list of Best Books in Hadoop.

To practice all interview questions and answers on Hbase, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.