Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
HBase Administration Cookbook

You're reading from  HBase Administration Cookbook

Product type Book
Published in Aug 2012
Publisher Packt
ISBN-13 9781849517140
Pages 332 pages
Edition 1st Edition
Languages
Author (1):
Yifeng Jiang Yifeng Jiang
Profile icon Yifeng Jiang
Toc

Table of Contents (16) Chapters close

HBase Administration Cookbook
Credits
About the Author
Acknowledgement
About the Reviewers
1. www.PacktPub.com
2. Preface
1. Setting Up HBase Cluster 2. Data Migration 3. Using Administration Tools 4. Backing Up and Restoring HBase Data 5. Monitoring and Diagnosis 6. Maintenance and Security 7. Troubleshooting 8. Basic Performance Tuning 9. Advanced Configurations and Tuning

Using HBase Shell to access data in HBase


HBase Shell provides Data Manipulation Language (DML) group commands to manipulate data in HBase. The DML group includes the commands count, delete, deleteall, get, get_counter, incr, put, scan, and truncate. Just as their names express, these commands provide basic access and update operations on data in HBase.

Note

HBase has a feature called counter, which is useful to build a metrics gathering system on HBase. Get_counter and incr are commands for counter operations.

The count, scan, and truncate commands may take time to finish when running them on a huge amount of data in HBase.

To count a big table, you should use the rowcounter MapReduce job, which is shipped with HBase. We will describe it in the Row counter recipe, later in this chapter.

Getting ready

Start your HBase cluster, connect to the cluster from your client, and create a table called t1, if it does not exist.

How to do it...

The following steps are demonstrations of how to use DML commands...

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