Complete the code to create a new HBase table named 'students'.
create '[1]', 'info'
The create command followed by the table name and column family creates a new table. Here, 'students' is the correct table name.
Complete the code to insert a value 'John' into the 'name' column of the 'info' column family for row 'row1' in the 'students' table.
put 'students', 'row1', 'info:[1]', 'John'
The column qualifier is 'name' inside the 'info' column family where the value 'John' is inserted.
Fix the error in the code to retrieve the value of the 'name' column from the 'info' column family for row 'row1' in the 'students' table.
get 'students', 'row1', '[1]'
The correct syntax to specify a column is 'column_family:column', so 'info:name' is correct.
Fill both blanks to delete the 'age' column from the 'info' column family for row 'row2' in the 'students' table.
delete 'students', '[1]', '[2]'
The row key is 'row2' and the column to delete is 'info:age'.
Fill all three blanks to create a dictionary of all 'name' values from the 'info' column family for rows in the list ['row1', 'row2', 'row3'].
names = { [1]: get('students', [2], '[3]').value for [1] in ['row1', 'row2', 'row3'] }The variable 'row' is used to iterate over the list of rows. The get command fetches the 'info:name' column value for each row.