Created 04-11-2016 07:22 PM
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.
Created 04-11-2016 07:43 PM
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.
Created 04-11-2016 07:43 PM
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.
Created 04-11-2016 08:13 PM
@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.
Created 04-11-2016 10:15 PM
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
Created 04-13-2016 07:01 PM
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.
Created 04-15-2016 07:15 PM
@Hazarathkumar bobba - Please check below answers and accept one which is more relevant.
Created 04-18-2016 08:18 PM
Thank you @bdurai and @Kuldeep Kulkarni for your time. These were helpful.
Created 01-17-2017 07:15 PM
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.