Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Fix a typo to correctly check if variable is empty OR < 3 in
Browse files Browse the repository at this point in the history
  spark_on_yarn_env.sh.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=103348114
  • Loading branch information
dennishuo authored and Angus Davis committed Nov 13, 2015
1 parent 91ab4cc commit 61ed9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/spark/spark_on_yarn_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import_env extensions/spark/spark_env.sh

# Clusters must have at least 3 workers to run spark-validate-setup.sh
# and many other Spark jobs.
if [[ -n "${NUM_WORKERS}" ]] || (( ${NUM_WORKERS} < 3 )); then
if [[ -z "${NUM_WORKERS}" ]] || (( ${NUM_WORKERS} < 3 )); then
NUM_WORKERS=3
fi

Expand Down

0 comments on commit 61ed9f5

Please sign in to comment.