-
Notifications
You must be signed in to change notification settings - Fork 1k
RANGER-5424:Hive Insert command failed in Ranger Docker setup due to authentication and authorization issue. #769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…authentication and authorization issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR addresses authentication and authorization failures in the Ranger Docker setup when executing Hive INSERT commands. The core issue was that the hive user lacked both Kerberos tokens for authentication and HDFS permissions for writing Tez libraries and temporary files required for INSERT operations.
Key Changes:
- Added Kerberos authentication (kinit/kdestroy) for hive user when performing HDFS operations in Kerberos-enabled environments
- Created default HDFS policy granting hive user read/write/execute permissions for Tez operations
- Refactored HDFS operations to use the hive user instead of hdfs user when Kerberos is enabled
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| dev-support/ranger-docker/scripts/hive/ranger-hive-setup.sh | Added Kerberos authentication logic for hive user and split HDFS operations into Kerberos-enabled and non-Kerberos branches |
| dev-support/ranger-docker/scripts/admin/create-ranger-services.py | Added default HDFS policy granting hive user permissions to access paths needed for Tez operations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…authentication and authorization issue - review comment fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 12 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…authentication and authorization issue - review comment fix #2
Hive Insert command failed in Ranger Docker setup due to authentication and authorization issue.
What changes were proposed in this pull request?
How was this patch tested?
Testing in the DOCKER.
