Skip to content

HBase Utilities to copy/move/rename column-families or copy complete tables with it's data.

License

Notifications You must be signed in to change notification settings

isabella232/hbase-utils-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 

    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 

About

HBase Utilities to copy/move/rename column-families or copy complete tables with it's data.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published