DATABASE FUNDAMENTALS
BASICS OF BIG DATA
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
delete
|
|
disable ____ all
|
|
delete ____ all
|
|
all the above
|
Detailed explanation-1: -disable all. This command is used to disable all the tables matching the given regex. The syntax for disable all command is given below. Suppose there are 5 tables in HBase, namely raja, rajani, rajendra, rajesh, and raju.
Detailed explanation-2: -disable all:-This command will disable all the tables matching the given regex. The implementation is same as delete command (Except adding regex for matching). Once the table gets disable the user can able to delete the table from HBase.
Detailed explanation-3: -list is the command that is used to list all the tables in HBase.
Detailed explanation-4: -To verify whether a table is enabled, isTableEnabled() method is used; and to enable a table, enableTable() method is used.