Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
HBase Essentials

You're reading from  HBase Essentials

Product type Book
Published in Nov 2014
Publisher
ISBN-13 9781783987245
Pages 164 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Nishant Garg Nishant Garg
Profile icon Nishant Garg

The HBase shell


The easiest way to access HBase is using the command-line interface called the HBase shell. The HBase shell is based on the Java Virtual Machine-based implementation of Ruby (JRuby) and can be used to connect to local or remote servers for interaction. It also provides both client and administrative operations. The HBase shell, the default HBase tool that comes with the HBase installation, can be launched as follows:

$HBASE_HOME/bin/hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.96.2-hadoop2, r1581096, Mon Mar 24 16:03:18 PDT 2014
hbase(main):001:0>

To exit from the HBase shell, the exit or quit command is used as follows:

hbase(main):002:0> quit

Once the HBase shell is started, you can type in help, and then, click on Return to get the help text and the list of all the commands, as shown in the following screenshot:

Let's take a look at the various commands available with...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}