Skip to Main Content
HBase Administration Cookbook
book

HBase Administration Cookbook

by Yifeng Jiang
August 2012
Intermediate to advanced content levelIntermediate to advanced
332 pages
7h 3m
English
Packt Publishing
Content preview from HBase Administration Cookbook

Writing your own MapReduce job to import data

Although the importtsv tool is very useful for loading text files into HBase, in many cases, for full control of the loading process you may want to write your own MapReduce job to import data into HBase. For example, the importtsv tool does not work if you are going to load files of other formats.

HBase provides TableOutputFormat for writing data into an HBase table from a MapReduce job. You can also generate its internal HFile format files in your MapReduce job by using the HFileOutputFormat class, and then load the generated files into a running HBase cluster, using the completebulkload tool we described in the previous recipe.

In this recipe, we will explain the steps for loading data using your ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

HBase High Performance Cookbook

HBase High Performance Cookbook

Ruchir Choudhry
Hbase Essentials

Hbase Essentials

Nishant Garg
Learning Hbase

Learning Hbase

Shashwat Shriparv

Publisher Resources

ISBN: 9781849517140Other