Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
HBase Utilities to copy/move/rename column-families or copy complete tables with it's data.
branch: master

README

HBase Commandline Utilities
---------------------------
https://github.com/memonews/hbase-utils

Copyright (C) 2011 MeMoNews AG 

HBase Utilities to copy/move/rename column-families or copy complete tables with it's data. 
This software comes with absolutely *NO WARRANTY* whatsoever. 
See LICENSE.txt for more details. 
The utilities are for testing porposes only and should not be used on a 
production system without further testing (they are also very slow compared to a mapreduce job).

Installation:
-------------

1. build the project via maven: $ mvn package

2. then run one of the the following executables:

	a) $ hadoop jar target/hbase-utils-1.0-SNAPSHOT.jar com.memonews.hbase.CopyTable [-conf ...] <source> <target>
	 - to copy a complete table
	
	b) $ hadoop jar target/hbase-utils-1.0-SNAPSHOT.jar com.memonews.hbase.CopyColumnFamily [-conf ...] <source-table> <source-column> <target-table> <target-column>
	 - to copy a column-family from one table to another table
	 - to copy a column-family to the same table under a different name 
	
	c) $ hadoop jar target/hbase-utils-1.0-SNAPSHOT.jar com.memonews.hbase.MoveColumnFamily [-conf ...] <source-table> <source-column> <target-table> <target-column>
	 - to move a column-family from one table to another table
	 - to rename a column-family within a table

	d) $ hadoop jar target/hbase-utils-1.0-SNAPSHOT.jar com.memonews.hbase.CopyRow [-conf ...] <source-table> <source-row> <target-table> <target-row>
     	 - to copy row from one table to another table
	 - to copy row to the same table under a different key 
	
	e) $ hadoop jar target/hbase-utils-1.0-SNAPSHOT.jar com.memonews.hbase.MoveRow [-conf ...] <source-table> <source-row> <target-table> <target-row>
	 - to move row from one table to another table
	 - to move row to the same table under a different key

	f) $ hadoop jar target/hbase-utils-1.0-SNAPSHOT.jar com.memonews.hbase.CopyColumnFamilyData [-conf ...] <source-table> <source-column> <target-table> <target-column>
	 - to copy data of a column-family from one table to another table
	 - to copy data a column-family to the same table under a different name 

        f2) $ hadoop jar target/hbase-utils-1.0-SNAPSHOT.jar com.memonews.hbase.hadoop.CopyColumnFamilyData [-conf ...] <source-table> <source-column> <target-table> <target-column>
         - distributed version of f) via map-reduce (faster if there are multiple regions)

 	g) $ hadoop jar target/hbase-utils-1.0-SNAPSHOT.jar com.memonews.hbase.MoveColumnFamilyData [-conf ...] <source-table> <source-column> <target-table> <target-column>
	 - to move data of a column-family from one table to another table
	 - to move data a column-family to the same table under a different name 

	h) $ hadoop jar target/hbase-utils-1.0-SNAPSHOT.jar com.memonews.hbase.CopyTableWithoutData [-conf ...] <source-table> <target-table>
	 - to copy table without data (definition only)
Something went wrong with that request. Please try again.