Skip to content

Commit

Permalink
add default value to --tachyon-version
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng chang committed Mar 8, 2015
1 parent 6f8887e commit 1d53c5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ec2/spark_ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@
"1.2.1": "0.5.0",
}

DEFAULT_TACHYON_VERSION = "0.6.0"

DEFAULT_SPARK_VERSION = SPARK_EC2_VERSION
DEFAULT_SPARK_GITHUB_REPO = "https://github.com/apache/spark"

Expand Down Expand Up @@ -159,8 +161,9 @@ def parse_args():
help="Version of Spark to use: 'X.Y.Z' or a specific git hash (default: %default)")
parser.add_option(
"--tachyon-version",
default=DEFAULT_TACHYON_VERSION,
help="If --spark-version is a git hash, this will be used as the version of Tachyon. " +
"Otherwise, this field does not need to be specified")
"Otherwise, this field does not need to be specified. Default to 0.6.0")
parser.add_option(
"--spark-git-repo",
default=DEFAULT_SPARK_GITHUB_REPO,
Expand Down

0 comments on commit 1d53c5c

Please sign in to comment.