Why Is a Permission Exception Reported When Ranger Authentication and UDFs Are Used?
Question
When Ranger authentication is used and user-defined functions (UDFs) are used, a permission exception is reported.
Causes
If Ranger authentication is used, you must have the administrator permission to create, use, and delete functions. You can perform the management operations only after the administrator permissions are updated.
Solution
Add the admin permission of the user to Ranger.
- Log in to the Ranger management page as user rangeradmin by referring to Logging In to the Ranger Web UI.
- On the home page, click Settings and choose Roles.
- Click the role with Role Name set to admin. In the Users area, click Select User and select a username.
- Click Add Users, select Is Role Admin in the row where the username is located, and click Save.
Update the administrator permissions of a user.
- Use PuTTY to log in to the node where the Spark client is installed as the client installation user and run the following commands:
source {Spark client installation directory}/bigdata_env
kinit Spark service user
spark-beeline
- Run the following command to update the administrator permissions of the user:
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot