Github user vanzin commented on the pull request:
https://github.com/apache/spark/pull/4989#issuecomment-78522573
Yeah, the main thing here is that you do not want user B to be able to
modify user A's files. I understand your patch doesn't change the default case,
but I wonder what's your motivation for not configuring your daemons
appropriately instead?
With HDFS in mind, you'd have:
- user "spark" belonging to group "spark"
- /event_log_dir permissions 1777 owned by "spark:spark"
- Master and HistoryServer running as user "spark"
- Users don't need to belong to group "spark" at all.
Or maybe you're not using HDFS to store the logs?
With this configuration files / directories created under the event log dir
will belong to "user:spark" and everything should work as planned. Note this is
a little different than what a POSIX fs would do - a POSIX fs would require
"5777" permissions for this but HDFS doesn't support that.
---
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]