-
Notifications
You must be signed in to change notification settings - Fork 86
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
hive PV permissions #818
Comments
Nevermind, the fsGroup had no effect since the format has changed. It helped me to actually take the time to understand what it does. This seems the correct fix to the issue:
Can it be documented somewhere? |
This works because it sets the GID bit on the volumes to 0, which is the processes GID. The init container approach works because you're running the initContainer as non-root, which we cannot do in Openshift, and openshift chowns the volumes by default (vanilla Kubernetes doesn't seem to do this so running as non-root with volumes is problematic). We've not documented this because we don't regularly test on non-Openshift environments so we don't have any way to ensure this remains correct and up-to-date. That said, this is something we plan to tackle as soon as we have our first GA release which is coming soon. Once we have time to spend on making the non-openshift installation story better, this will be a lot easier, and we'll even have an official install method using OLM/operatorhub for non-openshift environments. I'll leave this open so we can remember to add this to the documentation when we start that. |
Hello!
I am having a permission issue in hive-metastore: the mounted directories have mode
rwxrws---
(root.root) and the user is hadoop (1002).The volumes are dynamically provided by rook/ceph.
I tried to change
charts/openshift-metering/templates/hive/hive-metastore-statefulset.yaml
as follows:To be able to run the above init containers, I had to set
securityContext.runAsNonRoot: false
The real issue is that presto runs, mounting the same volume, with uid 1003. So how is that supposed to work? Do I need to change the configuration of the storage provider?
The text was updated successfully, but these errors were encountered: