aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Aasted <aasted@twitch.tv>2015-04-06 23:50:48 -0700
committerJosh Rosen <joshrosen@databricks.com>2015-04-06 23:52:46 -0700
commitab1b8edb81feb2ad5cd28611f809c57cb61db9fb (patch)
treea3a1247fa0a6d94acafb700d92c69dd8e8c793fe
parent1cde04f21c5b7fbf4e5d63ac8e5f0fe13d092bc0 (diff)
downloadspark-ab1b8edb81feb2ad5cd28611f809c57cb61db9fb.tar.gz
spark-ab1b8edb81feb2ad5cd28611f809c57cb61db9fb.tar.bz2
spark-ab1b8edb81feb2ad5cd28611f809c57cb61db9fb.zip
[SPARK-6636] Use public DNS hostname everywhere in spark_ec2.py
The spark_ec2.py script uses public_dns_name everywhere in the script except for testing ssh availability, which is done using the public ip address of the instances. This breaks the script for users who are deploying the cluster with a private-network-only security group. The fix is to use public_dns_name in the remaining place. Author: Matt Aasted <aasted@twitch.tv> Closes #5302 from aasted/master and squashes the following commits: 60cf6ee [Matt Aasted] [SPARK-6636] Use public DNS hostname everywhere in spark_ec2.py (cherry picked from commit 6f0d55d76f758d217fd18ffa0ccf273d7ab0377b) Signed-off-by: Josh Rosen <joshrosen@databricks.com>
-rwxr-xr-xec2/spark_ec2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py
index 95082b50c1..e121dad462 100755
--- a/ec2/spark_ec2.py
+++ b/ec2/spark_ec2.py
@@ -715,7 +715,7 @@ def is_cluster_ssh_available(cluster_instances, opts):
Check if SSH is available on all the instances in a cluster.
"""
for i in cluster_instances:
- if not is_ssh_available(host=i.ip_address, opts=opts):
+ if not is_ssh_available(host=i.public_dns_name, opts=opts):
return False
else:
return True