HBase Shell is a command-line tool shipped with HBase. It provides basic functions to manage tables, access data in HBase, and manage the cluster. HBase Shell has several groups of commands. The group for managing tables is called Data Definition Language (DDL). Using DDL group commands, you can create, drop, and change HBase tables. You can also disable/enable tables from HBase Shell.
The following steps will show you how to use DDL commands to manage HBase tables:
1. Execute the following command from the client node, to start an HBase Shell prompt:
hac@client1$ $HBASE_HOME/bin/hbase shell
2. Create a table(
t1
) with a single column family(f1
) from HBase Shell, using thecreate
command:hbase> create 't1', 'f1'
3. Show the table list by using the
list
command:hbase> list TABLE hly_temp t1
4. Show the table properties using the
describe
command:hbase> describe 't1' DESCRIPTION ENABLED...