Github user tgravescs commented on the pull request:
https://github.com/apache/spark/pull/2126#issuecomment-53452530
What does the spark log say is the user when it does the runAsUser:
logDebug("running as user: " + user)? I assume the proper user like 1001079?
Right, what commit does after checking the HADOOP_USER_NAME is look at the
os name and this is where I thought the doAs would properly set it. Perhaps
I'm mistaken.
To clarify your setup is like this?
- on mesos the executors run as a super user like 'mesos'
- hdfs cluster is running as user 'hdfs'
- when it does the runAsUser it switches to try to use the actual user
(SPARK_USER) - for example 'joe'
one other reason I ask about this is that it works fine on yarn. Running
insecure hdfs and yarn as the user 'yarn' and and then access hdfs as the
actual user (joe) works fine. permissions are set properly. So I'm trying to
figure out what the differences is with mesos
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]