0
0
Hadoopdata~5 mins

CRUD operations in HBase in Hadoop - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does CRUD stand for in the context of HBase?
CRUD stands for Create, Read, Update, and Delete. These are the basic operations to manage data in HBase tables.
Click to reveal answer
beginner
How do you create a new table in HBase?
You create a table in HBase using the HBase shell command: <br>create 'table_name', 'column_family'<br>This sets up a table with the specified column family.
Click to reveal answer
beginner
Which HBase shell command is used to insert or update data in a table?
The put command is used to insert or update data. Example:<br>put 'table_name', 'row_key', 'column_family:qualifier', 'value'
Click to reveal answer
beginner
How do you read data from an HBase table?
You use the get command to read data for a specific row:<br>get 'table_name', 'row_key'<br>Or use scan 'table_name' to read multiple rows.
Click to reveal answer
beginner
What command deletes data or tables in HBase?
To delete a row or cell, use:<br>delete 'table_name', 'row_key', 'column_family:qualifier'<br>To delete a whole table:<br>disable 'table_name'<br>drop 'table_name'
Click to reveal answer
Which command creates a new table in HBase?
Acreate 'table_name', 'column_family'
Bput 'table_name', 'row_key', 'column_family:qualifier', 'value'
Cget 'table_name', 'row_key'
Ddelete 'table_name', 'row_key', 'column_family:qualifier'
What does the 'put' command do in HBase?
ADeletes data
BCreates a table
CReads data
DInserts or updates data
How do you read a single row from an HBase table?
Ascan 'table_name'
Bdelete 'table_name', 'row_key'
Cget 'table_name', 'row_key'
Dput 'table_name', 'row_key', 'column_family:qualifier', 'value'
Which commands are needed to delete a table in HBase?
Adelete 'table_name'
Bdisable 'table_name' and drop 'table_name'
Cput 'table_name', 'row_key', 'column_family:qualifier', 'value'
Dget 'table_name', 'row_key'
What is the purpose of the 'delete' command in HBase?
ARemove data from a row or cell
BInsert data
CCreate a new table
DRead data
Explain the steps and commands to perform CRUD operations in HBase.
Think about how you manage data in a spreadsheet: add, view, change, and remove.
You got /5 concepts.
    Describe how you would delete a specific cell value and then remove the entire table in HBase.
    Deleting a table is a two-step process after deleting data.
    You got /3 concepts.