hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Meil <doug.m...@explorysmedical.com>
Subject Re: Copying tables from one server to another
Date Thu, 08 Sep 2011 01:03:30 GMT

Hi there-

Have you tried this?

http://hbase.apache.org/book.html#copytable

It's the Java invocation of the copy-table function (without the ruby)



On 9/7/11 8:29 PM, "Tom Goren" <tom@tomgoren.com> wrote:

>So I have read http://blog.sematext.com/2011/03/11/hbase-backup-options/
>
>The built-in solution, namely the 'Export' and 'Import' classes are
>relatively straight forward to use, however, the exports include the data
>alone, and nothing in regards to the table description (column families,
>versioning etc.).
>
>Manually creating the table seems wrong to me, and parsing the output of
>'describe table_name' seems like something that someone must have done
>before me.
>
>There is this:
>http://svn.apache.org/repos/asf/hbase/trunk/bin/copy_table.rb
>But surely there is something nicer?
>
>Is there an all encompassing solution that I am unaware of?
>
>What is the basic correlating option to:
>
>mysqldump db_name table_name > file
>mysql db_name < file
>
>Or, if this is too Utopian in an hbase world, what is the next best thing?
>
>Thanks.
>Tom


Mime
View raw message