Skip to content

Commit

Permalink
Revert "time the pssh calls"
Browse files Browse the repository at this point in the history
This reverts commit d9333af.
  • Loading branch information
nchammas committed Dec 24, 2014
1 parent 6410b91 commit a62e692
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit a62e692

Please sign in to comment.