Support Questions
Find answers, ask questions, and share your expertise

How to copy HBase Table from CDH 4.2 cluster to CDH 5.0.2 cluster

How to copy HBase Table from CDH 4.2 cluster to CDH 5.0.2 cluster

Explorer

Hi,

 

I'm using CDH4.2 in the present environment and have created a new cluster with CDH5.0.2. I have to copy the existing Hbase tables from present cluster to new cluster.

 

Can anyone suggest the best way to load the data?

 

Thanks and Best Regards,

YBSNR

3 REPLIES 3

Re: How to copy HBase Table from CDH 4.2 cluster to CDH 5.0.2 cluster

Please read the blog entry linked here. It talks about Backup and Disaster
Recovery but the methods listed are valid when you want to move HBase data
between clusters also

http://blog.cloudera.com/blog/2013/11/approaches-to-backup-and-disaster-recovery-in-hbase/

Regards,
Gautam Gopalakrishnan

Re: How to copy HBase Table from CDH 4.2 cluster to CDH 5.0.2 cluster

Explorer

Hi Gautam,

Thank you for the reply. The article is informative.

 

Here the challenge is, my present cluster is running on CDH 4.2.1/ HBase Version 0.94.2.

The article states "The details herein apply to CDH 4.3.0/HBase 0.94.6 and later."

So, the techniques used in the article can't be applied. Please correct me if I'm wrong.

 

Thanks,

Surya

Re: How to copy HBase Table from CDH 4.2 cluster to CDH 5.0.2 cluster

You're right about snapshots and replication will not work as the serialization methods in CDH4 are different to CDH5 (uses protobuf).

 

However CopyTable and Export are still available in CDH4.2. You could explore these two to get your data across to the new cluster.

Regards,
Gautam Gopalakrishnan