From a62e692f6e9548f593d432680b9e3665a138c832 Mon Sep 17 00:00:00 2001 From: Nicholas Chammas Date: Thu, 27 Nov 2014 17:00:28 -0500 Subject: [PATCH] Revert "time the pssh calls" This reverts commit d9333af0a21d1aff3216471823344f326ef84cfb. --- setup.sh | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/setup.sh b/setup.sh index 40c84e2..bf35bb6 100755 --- a/setup.sh +++ b/setup.sh @@ -12,14 +12,11 @@ source /root/.bash_profile source ec2-variables.sh function approve_ssh_keys () { - time { - pssh --inline \ - --host "localhost $(hostname) $MASTERS $SLAVES" \ - --user root \ - --extra-args "$SSH_OPTS" \ - ":" - } - echo " ✝ approve_ssh_keys" + pssh --inline \ + --host "localhost $(hostname) $MASTERS $SLAVES" \ + --user root \ + --extra-args "$SSH_OPTS" \ + ":" } # Set hostname based on EC2 private DNS name, so that it is set correctly @@ -68,14 +65,11 @@ done wait echo "Running setup-slave on all cluster nodes to mount filesystems, etc..." -time { - pssh --inline \ - --host "$MASTERS $SLAVES" \ - --user root \ - --extra-args "-t -t $SSH_OPTS" \ - "spark-ec2/setup-slave.sh" -} -echo " ✝ setup-slave" +pssh --inline \ + --host "$MASTERS $SLAVES" \ + --user root \ + --extra-args "-t -t $SSH_OPTS" \ + "spark-ec2/setup-slave.sh" echo "SSH-ing to all cluster nodes to re-approve keys..." # We do this again because setup-slave.sh clears out .ssh/known_hosts.