Using HBase Shell to manage tables

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.

Getting ready

Start your HBase cluster.

How to do it...

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 ...

Get HBase Administration Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.