Configure Service Name for Databricks Spark Plugin#
By default, in Privacera Portal, all the policies get enforced that are defined in privacera_hive under Access Management > Resource Policies. You would want to change the default service name, privacera_hive, to a name of your choice, and enforce all the policies defined under this new service name.
In Privacera, the service name follows a pattern for its naming, which is as follows:
- For Hive, it is SERVICE_NAME_PREFIX_hive.
- For S3, it is SERVICE_NAME_PREFIX_s3.
- For ADLS, it is SERVICE_NAME_PREFIX_adls.
- For Files, it is SERVICE_NAME_PREFIX_files.
where SERVICE_NAME_PREFIX is the variable that has a default value, privacera, assigned to it. To add your customized name, you need to change the value of this variable
To customize a new service name as per your need, then do the following:
In Privacera Portal, under Access Management > Resource Policies, create repositories with your customized name. For example, create new repositories with the following names:
Run the following command.
Modify the following property. By default, its value is
SERVICE_NAME_PREFIX=privacera. Change this value as shown.
Restart the cluster which is pointing to updated init script.