The HBase Import
utility is used to load data that has been exported by the Export
utility into an existing HBase table. It is the process to restore data from the Export
utility backup solution.
We will look at the usage of the Import
utility in this recipe.
First, start your HDFS and HBase cluster.
We will import the files that we exported in the previous recipe into our hly_temp
table. If you do not have those dump files, refer to the Exporting HBase table to dump files on HDFS recipe, to generate the dump files in advance. We assume the dump files are saved in the /backup/hly_temp
directory.
The Import
utility uses MapReduce to import data. Add the HBase configurable file (hbase-site.xml
) and dependency JAR files to Hadoop class path on your client node.