Working with Pig and using Shell

In addition to the previously mentioned clients, some very useful clients which can be used in various scenarios are Pig and HBase shell.

Using Pig comes with a unique integration process, in which HbaseStorage is used to read and write data to HBase tables. But it does allow you to do it in a bulk loading fashion. If the data is already present in HBase, then the reads are much faster as compared to pulling it from the HDFS.

How to do it…

The process is as follows:

  1. You let Pig know the table, column families, individual columns, or even the entire column family.
  2. The column family may contain various sets of columns and their values, hence it's essential to cast it to their Pig map type.
  3. The load location string needs ...

Get HBase High Performance 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.