HBase – General Commands

  • Post author:
  • Post category:HBase
  • Post comments:0 Comments
general commands

The general commands in HBase are status, version, table_help, and whoami. This chapter explains these commands.

status

This command returns the status of the system including the details of the servers running on the system. Its syntax is as follows:

hbase(main):009:0> status

If you execute this command, it returns the following output.

hbase(main):009:0> status
3 servers, 0 dead, 1.3333 average load

version

This command returns the version of HBase used in your system. Its syntax is as follows:

hbase(main):010:0> version

If you execute this command, it returns the following output.

hbase(main):009:0> version
0.98.8-hadoop2, r6cfc8d064754251365e070a10a82eb169956d5fe, Fri Nov 14
18:26:29 PST 2014

table_help

This command guides you what and how to use table-referenced commands. Given below is the syntax to use this command.

hbase(main):02:0> table_help

When you use this command, it shows help topics for table-related commands. Given below is the partial output of this command.

hbase(main):002:0> table_help
Help for table-reference commands.
You can either create a table via 'create' and then manipulate the table
via commands like 'put', 'get', etc.
See the standard help information for how to use each of these commands.
However, as of 0.96, you can also get a reference to a table, on which
you can invoke commands.
For instance, you can get create a table and keep around a reference to
it via:
 hbase> t = create 't', 'cf'…...

whoami

This command returns the user details of HBase. If you execute this command, returns the current HBase user as shown below.

hbase(main):008:0> whoami
hadoop (auth:SIMPLE)
groups: hadoop

Next Topic:-Click Here

Leave a Reply