Support Questions

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

CDP Ranger permissions creation script

avatar
Contributor

Hi All,

 

We have a Script for creating  - HDFS directories , hive database and HBase namespace and also giving permissions as well in a script in CDH environment with Sentry.

we have created roles and granting permission to the groups on database level through same script.

 

Now ,we have a different cluster with CDP and we want to update the script for Ranger.

Can anyone help us can we use same script(database permission) for CDP with ranger or do we need to make any changes?

 

 

Thanks

Srini Podili

1 REPLY 1

avatar
Expert Contributor

You can replace the sentry part of your script with Apache ranger API to create/update/delete ranger policies, example here Ranger RestAPIs for Creating, Updating, Deleting, and Searching Policies in Big SQL - Hadoop Dev (ib...