Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to sync schemas from one region to another

avatar
Explorer

Hi All,

 

Need advice, how we can export all the DDL of one scheme from Hive ( from QA region, a schema with around 2000 tables) to Dev or ACPT region, only DDL's  needed to be in sync , not worried about the data, so do we have any option or script to import / export all the DDL's from one region to another region in one go, please suggest, thank you.

 

PK

1 ACCEPTED SOLUTION

avatar
Expert Contributor

Hello @prakodi,

For CDH 6.3, you can review this article

https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cm_bdr_hive_replication.html

 

Hope this helps,

Tarun

 

Was your question answered? Make sure to mark the answer as the accepted solution.

If you find a reply useful, say thanks by clicking on the thumbs-up button.

View solution in original post

6 REPLIES 6

avatar
Explorer

You can use BDR to sync only dictionary

avatar
Expert Contributor

Hello @prakodi ,

 

You can use Hive Replication to migrate the schema from one cluster to another

https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/replication-manager/topics/rm-dc-hiveimpala-r...

 

Hope this helps,

Tarun

 

Was your question answered? Make sure to mark the answer as the accepted solution.

If you find a reply useful, say thanks by clicking on the thumbs-up button.

avatar
Explorer

Hi, 

 

we need to sync only few schemas, this solution is completely moving all the metastore from one region to another region. Just for one schema which contains 100's of tables, we want to  sync the DDL's to another region.

 

 

 

avatar
Expert Contributor

Hello @prakodi,

Thanks for your response!

 

You do have the option to select a single database in the general tab while creating hive replication policies. In the Replicate All parameter you can mention the single database.

 

Refer to this article: 

https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/replication-manager/topics/rm-dc-configuring-...

 

Hope this helps,

Tarun

 

Was your question answered? Make sure to mark the answer as the accepted solution.

If you find a reply useful, say thanks by clicking on the thumbs-up button.

avatar
Explorer

Hi Tarun,

 

This solutions looks fine, but unfortunately we are still using CDH6.3 version only, so we dont use Ranger, so is there any option for CHD 6.3 version ?

 

Thanks,

PK

avatar
Expert Contributor

Hello @prakodi,

For CDH 6.3, you can review this article

https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cm_bdr_hive_replication.html

 

Hope this helps,

Tarun

 

Was your question answered? Make sure to mark the answer as the accepted solution.

If you find a reply useful, say thanks by clicking on the thumbs-up button.