Github user nchammas commented on a diff in the pull request:
https://github.com/apache/spark/pull/3939#discussion_r22686463
--- Diff: ec2/spark_ec2.py ---
@@ -706,9 +697,7 @@ def wait_for_cluster_state(conn, opts,
cluster_instances, cluster_state):
sys.stdout.flush()
start_time = datetime.now()
-
num_attempts = 0
- conn = ec2.connect_to_region(opts.region)
--- End diff --
It opens a connection to EC2. But since we are [already passed in a
connection as
`conn`](https://github.com/apache/spark/pull/3939#discussion-diff-22621704L693),
there is no need to recreate this.
---
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]