You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Wei Tan <wt...@us.ibm.com> on 2013/01/29 22:54:05 UTC

copy table AND descriptor

Hi I have a table in cluster 1 with quite lengthy metadata (aka, 
descriptor). How can I replicate the data as well as descriptor to another 
table?
CopyTable, Export/Import does not handle table descriptor.

Thanks,
Wei

Re: copy table AND descriptor

Posted by Wei Tan <wt...@us.ibm.com>.
Hi Ted, Thanks for your remind. I made it in two steps:

1. write a java problem to create a table using original table's 
descriptor.
2. use ./bin/hbase org.apache.hadoop.hbase.mapreduce.CopyTable to copy the 
data



Best Regards,
Wei

Wei Tan 
Research Staff Member 
IBM T. J. Watson Research Center
Yorktown Heights, NY 10598
wtan@us.ibm.com; 914-945-4386



From:   Ted Yu <yu...@gmail.com>
To:     user@hbase.apache.org, 
Date:   01/29/2013 05:01 PM
Subject:        Re: copy table AND descriptor



Which version of HBase are you using ?

Have you tried using 'describe' shell command ?

Thanks

On Tue, Jan 29, 2013 at 1:54 PM, Wei Tan <wt...@us.ibm.com> wrote:

> Hi I have a table in cluster 1 with quite lengthy metadata (aka,
> descriptor). How can I replicate the data as well as descriptor to 
another
> table?
> CopyTable, Export/Import does not handle table descriptor.
>
> Thanks,
> Wei


Re: copy table AND descriptor

Posted by Ted Yu <yu...@gmail.com>.
Which version of HBase are you using ?

Have you tried using 'describe' shell command ?

Thanks

On Tue, Jan 29, 2013 at 1:54 PM, Wei Tan <wt...@us.ibm.com> wrote:

> Hi I have a table in cluster 1 with quite lengthy metadata (aka,
> descriptor). How can I replicate the data as well as descriptor to another
> table?
> CopyTable, Export/Import does not handle table descriptor.
>
> Thanks,
> Wei