Skip to content

Commit ab1b8ed

Browse files
Matt AastedJoshRosen
authored andcommitted
[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 <[email protected]> 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 6f0d55d) Signed-off-by: Josh Rosen <[email protected]>
1 parent 1cde04f commit ab1b8ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ec2/spark_ec2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ def is_cluster_ssh_available(cluster_instances, opts):
715715
Check if SSH is available on all the instances in a cluster.
716716
"""
717717
for i in cluster_instances:
718-
if not is_ssh_available(host=i.ip_address, opts=opts):
718+
if not is_ssh_available(host=i.public_dns_name, opts=opts):
719719
return False
720720
else:
721721
return True

0 commit comments

Comments
 (0)