Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

What is the best way to Backup Ranger meta data periodically?

Solved Go to solution

What is the best way to Backup Ranger meta data periodically?

New Contributor

What is the best way to backup the Ranger database 0.5.0(only meta data for the purpose of disaster recovery). I see that the REST API is available. Can you please share your experience if you have implemented this in your organization? Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: What is the best way to Backup Ranger meta data periodically?

Contributor

The best option is to just backup your Ranger database. For production, you should also consider setting up DB level replication (active/active or active/passive). This will give you HA and DR.

7 REPLIES 7

Re: What is the best way to Backup Ranger meta data periodically?

Contributor

The best option is to just backup your Ranger database. For production, you should also consider setting up DB level replication (active/active or active/passive). This will give you HA and DR.

Re: What is the best way to Backup Ranger meta data periodically?

New Contributor

@bdurai, Thank you very much for redirecting me to this idea of 'setting up Replication'. I was spending my time on creating a Java application that uses REST APIs. If 'Setting up DB Level Replication' is effective solution in this case, it saves us lot of time. If you can please share more information of how to do this, it will be a great help. Thank you very much again.

Re: What is the best way to Backup Ranger meta data periodically?

Contributor

It would depend on which DB vendor you are using and what sort of license you have for your RDBMS. If you don't already have replication at the DB level, you might just for regular export of the DB, e.g mysqldump in MySQL would be a good short term solution for you

Re: What is the best way to Backup Ranger meta data periodically?

Super Guru
@Hazarathkumar bobba

Please refer below link to setup master slave replication if you are using mysql.

http://www.tecmint.com/how-to-setup-mysql-master-slave-replication-in-rhel-centos-fedora/

You can also write sample oozie/cron job which will take mysqldump and store to some archived location, same script should have login to purge older dumps.

Re: What is the best way to Backup Ranger meta data periodically?

Super Guru

@Hazarathkumar bobba - Please check below answers and accept one which is more relevant.

Re: What is the best way to Backup Ranger meta data periodically?

New Contributor

Thank you @bdurai and @Kuldeep Kulkarni for your time. These were helpful.

Re: What is the best way to Backup Ranger meta data periodically?

New Contributor

Hi @bdurai and @Kuldeep Kulkarni,

I have developed a Java tool which can download all the policies from Ranger and create those policies back into another Ranger Environment. Just thought of sharing with you guys.

Thanks for your time though.

Don't have an account?
Coming from Hortonworks? Activate your account here