Updated Branches:
  refs/heads/branch-0.8 8f5639077 -> f898238a2

Force pseudo-tty allocation in spark-ec2 script.

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.


Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/2e2ead40
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/2e2ead40
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/2e2ead40

Branch: refs/heads/branch-0.8
Commit: 2e2ead402003e77e78961583581b28d106f65c12
Parents: 8f56390
Author: Ewen Cheslack-Postava <[email protected]>
Authored: Mon Dec 16 08:07:20 2013 -0800
Committer: Ewen Cheslack-Postava <[email protected]>
Committed: Mon Dec 16 08:16:56 2013 -0800

----------------------------------------------------------------------
 ec2/spark_ec2.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/2e2ead40/ec2/spark_ec2.py
----------------------------------------------------------------------
diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py
index d508ab3..dfee9bf 100755
--- a/ec2/spark_ec2.py
+++ b/ec2/spark_ec2.py
@@ -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):

Reply via email to