mirror of https://github.com/apache/druid.git
Fixed hanging ssh bug FINALLY
This commit is contained in:
parent
fa0d37f14e
commit
a39148a0af
|
@ -55,7 +55,7 @@ sleep 60
|
||||||
INSTANCE_ADDRESS=`ec2-describe-instances|grep 'INSTANCE'|grep $INSTANCE_ID|cut -f4`
|
INSTANCE_ADDRESS=`ec2-describe-instances|grep 'INSTANCE'|grep $INSTANCE_ID|cut -f4`
|
||||||
echo "Connecting to $INSTANCE_ADDRESS to prepare environment for druid..."
|
echo "Connecting to $INSTANCE_ADDRESS to prepare environment for druid..."
|
||||||
scp -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ./ec2/env.sh ubuntu@${INSTANCE_ADDRESS}:
|
scp -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ./ec2/env.sh ubuntu@${INSTANCE_ADDRESS}:
|
||||||
ssh -q -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ubuntu@${INSTANCE_ADDRESS} 'chmod +x ./env.sh;./env.sh'
|
ssh -q -f -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ubuntu@${INSTANCE_ADDRESS} 'chmod +x ./env.sh;./env.sh'
|
||||||
|
|
||||||
echo "Prepared $INSTANCE_ADDRESS for druid."
|
echo "Prepared $INSTANCE_ADDRESS for druid."
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ fi
|
||||||
|
|
||||||
# Now boot druid parts
|
# Now boot druid parts
|
||||||
scp -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ./ec2/run.sh ubuntu@${INSTANCE_ADDRESS}:
|
scp -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ./ec2/run.sh ubuntu@${INSTANCE_ADDRESS}:
|
||||||
ssh -q -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ubuntu@${INSTANCE_ADDRESS} 'chmod +x ./run.sh;./run.sh'
|
ssh -q -f -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ubuntu@${INSTANCE_ADDRESS} 'chmod +x ./run.sh;./run.sh'
|
||||||
|
|
||||||
echo "Druid booting complete!"
|
echo "Druid booting complete!"
|
||||||
echo "ssh -i ~/.ssh/druid-keypair ubuntu@${INSTANCE_ADDRESS} #to connect"
|
echo "ssh -i ~/.ssh/druid-keypair ubuntu@${INSTANCE_ADDRESS} #to connect"
|
||||||
|
|
Loading…
Reference in New Issue