- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Is there a way to bulk dump ranger policy using rest api?
- Labels:
-
Apache Ranger
Created 12-12-2016 08:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is there a way to bulk dump ranger policies using rest api?
The used case here is from PROD to DR one time copy.
I understand the process of copying it one by one using rest.
Thanks,
Raj
Created 12-13-2016 05:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
https://issues.apache.org/jira/browse/RANGER-1214 is planned for next release.
Created 12-12-2016 09:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is a prior discussion on this topic, I am interested in any new approaches , in case this thread leads to one.
https://community.hortonworks.com/questions/37036/how-to-replicate-policies-across-cluster.html
Created 12-12-2016 09:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Prashobh Balasundaram this thread is really interesting discussion and it works. I am looking for bulk dump not one by one.
Created 12-12-2016 09:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created 12-12-2016 09:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Prashobh Balasundaram this thread is really interesting discussion and it works. I am looking for bulk dump not one by one.
Created 12-13-2016 05:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
https://issues.apache.org/jira/browse/RANGER-1214 is planned for next release.
Created 12-14-2016 10:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. I am going to accept this answer, since really there is no inbuilt way to bulk load it.
I had to do some custom scripting to call the rest api to get the policies, change repository and post it back.
Not complicated but not the cleanest way either since you have to hop from one cluster to the other:)
Created 12-14-2016 09:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
which version of Ranger / HDP you are using, it may be that in your version that API is not there and later release has it
