Book Image

Learning HBase

By : Shashwat Shriparv
Book Image

Learning HBase

By: Shashwat Shriparv

Overview of this book

Table of Contents (18 chapters)
Learning HBase
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Using the Hadoop tool or JARs for HBase


In a driver class provided by Hadoop, we can run HBase JAR files utilizing the features of Hadoop and using the following command:

hadoop jar <HBase Jar file path>/hbase-*.jar<program name>

The program names we can use here are:

  • completebulkload: This is for a bulk data load

  • copytable: This is to export a table data from the local to peer cluster

  • export: This is to export data from an HBase table to HDFS as a sequence file

  • import: This is to import data written by export

  • importtsv: This is to import data in TSV format to HBase

  • rowcounter: This is to count rows in an HBase table using MapReduce

  • verifyrep: This is to compare the data from tables of different clusters

We will discuss the preceding methods in the next chapter, where we will also discuss the backup/restore process. Likewise, we can call the HBase JAR file with Hadoop. The following are the Hadoop tools:

  • HFile tool: This tool helps us to read an HFile content in text format....