Support Questions

Find answers, ask questions, and share your expertise

Is there a way to bulk dump ranger policy using rest api?

avatar

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

1 ACCEPTED SOLUTION

avatar
7 REPLIES 7

avatar
Expert Contributor

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

avatar

@Prashobh Balasundaram this thread is really interesting discussion and it works. I am looking for bulk dump not one by one.

avatar
Expert Contributor

avatar

@Prashobh Balasundaram this thread is really interesting discussion and it works. I am looking for bulk dump not one by one.

avatar

avatar

@vperiasamy

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:)

avatar
Super Collaborator
@Prashobh Balasundaram

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