Github user WangTaoTheTonic commented on a diff in the pull request:
https://github.com/apache/spark/pull/3823#discussion_r22308521
--- Diff: bin/spark-submit ---
@@ -42,7 +42,10 @@ while (($#)); do
shift
done
-DEFAULT_PROPERTIES_FILE="$SPARK_HOME/conf/spark-defaults.conf"
+DEFAULT_PROPERTIES_FILE="$SPARK_CONF_DIR/spark-defaults.conf"
+if [ ! -f "DEFAULT_PROPERTIES_FILE" ]; then
+ DEFAULT_PROPERTIES_FILE="$SPARK_HOME/conf/spark-defaults.conf"
+fi
export SPARK_SUBMIT_DEPLOY_MODE=${SPARK_SUBMIT_DEPLOY_MODE:-"client"}
export
SPARK_SUBMIT_PROPERTIES_FILE=${SPARK_SUBMIT_PROPERTIES_FILE:-"$DEFAULT_PROPERTIES_FILE"}
--- End diff --
I mean there is a possibility that user don't use the conf sub-directory
default installation location but specified.
For instance, I touch a spark-defaults.conf under `/etc/my-spark/` and use
it for submitting applications, so I set SPARK_CONF_DIR to `/etc/my-spark/` to
make the properties file work.
The properties file under `$SPARK_HOME/conf` could be unused or used for
submitting other applications.
---
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]