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 loadcopytable
: This is to export a table data from the local to peer clusterexport
: This is to export data from an HBase table to HDFS as a sequence fileimport
: This is to import data written byexport
importtsv
: This is to import data in TSV format to HBaserowcounter
: This is to count rows in an HBase table using MapReduceverifyrep
: This is to compare the data from tables of different clusters
We will discuss the preceding methods in the next ...
Get Learning HBase 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.