Skip to content

Commit

Permalink
Don't barf when the properties file does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewor14 committed Aug 19, 2014
1 parent 8867a09 commit 9ba37e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/spark-submit
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export SPARK_SUBMIT_PROPERTIES_FILE=${SPARK_SUBMIT_PROPERTIES_FILE:-"$DEFAULT_PR
# paths, library paths, java options and memory early on. Otherwise, it will
# be too late by the time the JVM has started.

if [ "$SPARK_SUBMIT_DEPLOY_MODE" == "client" ]; then
if [[ "$SPARK_SUBMIT_DEPLOY_MODE" == "client" && -f "$SPARK_SUBMIT_PROPERTIES_FILE" ]]; then
# Parse the properties file only if the special configs exist
contains_special_configs=$(
grep -e "spark.driver.extra*\|spark.driver.memory" "$SPARK_SUBMIT_PROPERTIES_FILE" | \
Expand Down

0 comments on commit 9ba37e2

Please sign in to comment.