You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
or You can also open this configuration in **/etc/spark3/conf** by using SSH.
177
+
or You can also open this configuration in **/etc/spark3/conf** by using SSH.
178
178
179
-
Edit two configurations (**ranger.plugin.spark.service.name** and **ranger.plugin.spark.policy.cache.dir**) to point to the old policy repo **oldclustername_hive**, and then save the configurations.
179
+
Edit two configurations (**ranger.plugin.spark.service.name** and **ranger.plugin.spark.policy.cache.dir**) to point to the old policy repo **oldclustername_hive**, and then save the configurations.
180
180
181
181
Ambari:
182
182
@@ -186,11 +186,15 @@ Let's say that you have the policies defined in the Ranger repo already under th
186
186
187
187
:::image type="content" source="./media/ranger-policies-for-spark/config-update-xml.png" alt-text="Screenshot that shows a configuration update for service name in XML." lightbox="./media/ranger-policies-for-spark/config-update-xml.png":::
188
188
189
-
1. Click on edit button for **oldclustername_hive** and add **rangersparklookup** user in the **policy.download.auth.users** and **tag.download.auth.users** list.
189
+
1. Restart the Ranger and Spark services from Ambari.
190
+
191
+
1. Open the Ranger admin UI and click on edit button under **HADOOP SQL** service.
190
192
191
-
:::image type="content" source="./media/ranger-policies-for-spark/" alt-text="Screenshot that shows edit option for ranger service." lightbox="./media/ranger-policies-for-spark/":::
193
+
:::image type="content" source="./media/ranger-policies-for-spark/ranger-service-edit.png" alt-text="Screenshot that shows edit option for ranger service." lightbox="./media/ranger-policies-for-spark/ranger-service-edit.png":::
192
194
193
-
1. Restart the Ranger and Spark services from Ambari.
195
+
1. For **oldclustername_hive** service, add **rangersparklookup** user in the **policy.download.auth.users** and **tag.download.auth.users** list and click save.
196
+
197
+
:::image type="content" source="./media/ranger-policies-for-spark/add-new-user-rangerlookup.png" alt-text="Screenshot that shows edit option for ranger service." lightbox="./media/ranger-policies-for-spark/add-new-user-rangerlookup.png":::
194
198
195
199
The policies are applied on databases in the Spark catalog. If you want to access the databases in the Hive catalog:
0 commit comments