O'Reilly logo

HBase Administration Cookbook by Yifeng Jiang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required