HBase Bulk Load Example
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src/cy/ac/ucy/paschalis/hbase/bulkimport
README.md
file1.txt

README.md

Map Reduce Example for:

http://hbase.apache.org/book.html#arch.bulk.load

0 ) Include all libraries from lib/

1 ) Export project's JAR to bulk.jar

2 ) Copy file1.txt to hdfs

3 ) Create table using: create '<tablename>', {NAME=>'m'}

4 ) Run the JAR file using: hadoop jar $HBASE_HOME/bulk.jar com.cloudera.examples.hbase.bulkimport.Driver <hdfsDirectory>/file1.txt \ <hdfsDirectory>/<outputname>/ <tablename>

and change <hdfsdirectory>, <outputfilename>, and <tablename> accordingly

5 ) Modify MapReduce job for your needs