Github user nchammas commented on a diff in the pull request:
https://github.com/apache/spark/pull/4901#discussion_r25875499
--- Diff: ec2/spark_ec2.py ---
@@ -340,6 +346,27 @@ def is_active(instance):
"t2.small": "hvm",
}
+# Return correct versions of Spark and Tachyon, given the supplied Spark
version
+def get_spark_tachyon_version(opts):
+ spark_tachyon_map = {
+ "0.7.3": "",
+ "0.8.0": "",
+ "0.8.1": "",
+ "0.9.0": "",
+ "0.9.1": "",
+ "1.0.0": "0.4.1",
+ "1.0.1": "0.4.1",
+ "1.0.2": "0.4.1",
+ "1.1.0": "0.5.0",
+ "1.1.1": "0.5.0",
+ "1.2.0": "0.5.0",
+ "1.2.1": "0.5.0",
+ }
+ version = opts.spark_version.replace("v", "")
--- End diff --
Nit: I know git hashes can't contain the letter "v", but it seem wrong to
remove all occurrences of the letter. Instead, we probably want to use `lstrip`
here.
---
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]