0
0
Hadoopdata~10 mins

HBase data model (column families) in Hadoop - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define a column family in HBase table creation.

Hadoop
create 'my_table', '[1]'
Drag options to blanks, or click blank then click option'
A'value'
B'rowkey'
C'column1'
D'cf1'
Attempts:
3 left
💡 Hint
Common Mistakes
Using row key or column qualifier names instead of column family names.
Omitting the quotes around the column family name.
2fill in blank
medium

Complete the code to add a new column family to an existing HBase table.

Hadoop
alter '[1]', 'cf2'
Drag options to blanks, or click blank then click option'
A'new_table'
B'my_table'
C'cf1'
D'row1'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a column family name instead of the table name in the alter command.
Using a non-existent table name.
3fill in blank
hard

Fix the error in the HBase shell command to create a table with two column families.

Hadoop
create 'test_table', '[1]', 'cf2'
Drag options to blanks, or click blank then click option'
A'cf1'
B'cf1', 'cf3'
Ccf1
D'cf1 cf3'
Attempts:
3 left
💡 Hint
Common Mistakes
Not quoting the column family name.
Combining multiple column families into one string.
4fill in blank
hard

Fill both blanks to define a table with two column families 'cf1' and 'cf2' in HBase shell.

Hadoop
create 'my_table', [1], [2]
Drag options to blanks, or click blank then click option'
A'cf1'
B'cf2'
C'cf3'
D'cf4'
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect column family names.
Combining column families into one string.
5fill in blank
hard

Fill all three blanks to create a table 'sales' with column families 'info', 'data', and 'metrics'.

Hadoop
create '[1]', [2], [3], 'metrics'
Drag options to blanks, or click blank then click option'
A'sales'
B'info'
C'data'
D'metrics'
Attempts:
3 left
💡 Hint
Common Mistakes
Placing column families in the wrong order.
Not quoting the table name or column families.