Skip to content

Commit

Permalink
Force pseudo-tty allocation in spark-ec2 script.
Browse files Browse the repository at this point in the history
ssh commands need the -t argument repeated twice if there is no local
tty, e.g. if the process running spark-ec2 uses nohup and the parent
process exits.
  • Loading branch information
ewencp committed Dec 16, 2013
1 parent 8f56390 commit 2e2ead4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ec2/spark_ec2.py
Expand Up @@ -565,7 +565,7 @@ def ssh(host, opts, command):
while True:
try:
return subprocess.check_call(
"ssh -t -o StrictHostKeyChecking=no -i %s %s@%s '%s'" %
"ssh -t -t -o StrictHostKeyChecking=no -i %s %s@%s '%s'" %
(opts.identity_file, opts.user, host, command), shell=True)
except subprocess.CalledProcessError as e:
if (tries > 2):
Expand Down

0 comments on commit 2e2ead4

Please sign in to comment.