1, view namespace
Hbase>describe_namespace ' Ai_ns '
2, List all namespace
Hbase>list_namespace,
3,<span style= "font-family: ' Microsoft Yahei '; Background-color:rgb (255, 255, 255); > Create a table under namespace </span>
Hbase>create ' ai_ns:testtable ', ' FM1 '
the management of the table
1 See what tables are available
2) Create a table
# syntax: Create <table>, {NAME => <family>, versions => <versions>} # For example: Creating a table T1, there are two family name:f1,f2, and Number of versions are 2 hbase (main) > create ' t1 ', {NAME => ' F1 ', versions => 2},{name => ' F2 ', versions => 2} |
3) Delete Table
Two steps: First disable, then drop
For example: Delete table T1
HBase (Main) > Disable ' T1 ' hbase (Main) > drop ' t1 ' |
4 View the structure of the table
# syntax: Describe <table> # For example: View the structure of the table T1 HBase (main) > describe ' t1 ' |
5) Modify Table structure
Modify table structure must first disable