comparison master/bin/hd_create.sh @ 56:8ce6a81e2bb4

remove -s 4
author Henry S. Thompson <ht@markup.co.uk>
date Wed, 27 May 2020 20:54:14 +0000
parents 93de42761f9c
children
comparison
equal deleted inserted replaced
55:c49b169339b1 56:8ce6a81e2bb4
20 exit 2 20 exit 2
21 fi 21 fi
22 name=cc"$1" 22 name=cc"$1"
23 pwd=CommonCrawl_"$1" 23 pwd=CommonCrawl_"$1"
24 echo "Starting creation of $name, will take 15 minutes or so..." 24 echo "Starting creation of $name, will take 15 minutes or so..."
25 cmd="az hdinsight create -g cc -n $name -l southcentralus -s 4 -t hadoop -p $pwd -U cc --storage-account ccscsg.blob.core.windows.net --workernode-size Standard_D13_V2 --headnode-size Standard_D12_V2" 25 cmd="az hdinsight create -g cc -n $name -l southcentralus -t hadoop -p $pwd -U cc --storage-account ccscsg.blob.core.windows.net --workernode-size Standard_D13_V2 --headnode-size Standard_D12_V2"
26 bash -c "$cmd$save_conf" 26 bash -c "$cmd$save_conf"
27 # remove old host key, if any 27 # remove old host key, if any
28 ssh-keygen -R $name-ssh.azurehdinsight.net 28 ssh-keygen -R $name-ssh.azurehdinsight.net
29 # let us in w/o password after this 29 # let us in w/o password after this
30 ssh $name-ssh.azurehdinsight.net "cat >> .ssh/authorized_keys" < /home/cc/.ssh/id_rsa.pub 30 ssh $name-ssh.azurehdinsight.net "cat >> .ssh/authorized_keys" < /home/cc/.ssh/id_rsa.pub