Github user vanzin commented on the pull request:
https://github.com/apache/spark/pull/1341#issuecomment-48551197
I'd rather do it differently in that case, if you really care about it.
Instead of loading spark-env.sh, do this:
CMD_LINE_ARGS=
if [ $# != 0 ]; then
# print warning
CMD_LINE_ARGS="--dir $1"
fi
exec spark-daemon.sh .... $CMD_LINE_ARGS
This restores the previous behaviour while still warning the user.
---
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.
---