Github user nchammas commented on the pull request:
https://github.com/apache/spark/pull/4262#issuecomment-72294957
OK, I added the dots back in. It doesn't look great, but it's serviceable:
```
$ ./ec2/spark-ec2 -k key -i /good/path/pem --instance-type m3.medium
--slaves 40 --zone us-east-1c launch "spark-test"
Setting up security groups...
Searching for existing cluster spark-test...
Spark AMI: ami-35b1885c
Launching instances...
Launched 40 slaves in us-east-1c, regid = r-811e646a
Launched master in us-east-1c, regid = r-501c66bb
Waiting for cluster to enter 'ssh-ready' state...........
Warning: SSH connection error. (This could be temporary.)
Host: 54.54.54.54
SSH return code: 255
SSH output: ssh: connect to host 54.54.54.54 port 22: Connection refused
.
Warning: SSH connection error. (This could be temporary.)
Host: 54.54.54.54
SSH return code: 255
SSH output: ssh: connect to host 54.54.54.54 port 22: Connection refused
.
Cluster is now in 'ssh-ready' state. Waited 517 seconds.
Generating cluster's SSH key on master...
```
That's what we get in the case of a temporary failure while SSH is still
coming up.
In the case of a permanent failure, you just get the repeated `.` on a
separate line followed by the 4-line error report:
```
$ ./ec2/spark-ec2 -k key -i /wrong/path/pem --instance-type m3.medium
--slaves 1 --zone us-east-1c launch "spark-test"
Setting up security groups...
Searching for existing cluster spark-test...
Spark AMI: ami-35b1885c
Launching instances...
Launched 1 slaves in us-east-1c, regid = r-283248c3
Launched master in us-east-1c, regid = r-2b3248c0
Waiting for cluster to enter 'ssh-ready' state..............
Warning: SSH connection error. (This could be temporary.)
Host: 54.54.54.54
SSH return code: 255
SSH output: Warning: Identity file /wrong/path/pem not accessible: No such
file or directory.
Warning: Permanently added '54.54.54.54' (RSA) to the list of known hosts.
Permission denied (publickey).
.
Warning: SSH connection error. (This could be temporary.)
Host: 54.54.54.54
SSH return code: 255
SSH output: Warning: Identity file /wrong/path/pem not accessible: No such
file or directory.
Permission denied (publickey).
.
...
```
What do you think?
---
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]