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?
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...