#!/bin/bashecho "Enter MasterNode ipaddress space hostname::"$condread condecho $cond > masterecho "Enter Datanode cluster number::"$cond1read cond1echo "Enter Sudo User Password::"$cond3read cond3if [ -z "$cond3" ]thenecho Your password file configuration successfully skiped..................elseecho "$cond3" > pas.txtecho Your password file configuration successfully finced..................fifor ((i=1; i<=$cond1; i++));doecho "Enter Datanode ipaddress space hostname::"$cond2read cond2echo $cond2 >> datanodedonecat master > hostcat datanode >> hostawk '!x[$0]++' host > hosmv hos hostcat pas.txt | sudo -S cp -r host /etc/hostsecho cpwget http://archive.apache.org/dist/hadoop/common/stable/hadoop-2.2.0.tar.gza=$( cat 1 )for ((i=1; i<=$cond1; i++));docut -d' ' -f1 datanode > slvsl=$( sed -n "$i"p slv )echo $slcut -d' ' -f2 datanode > slaveecho "$cond3" > pas.txtecho $cond > masterscp -r host $sl:~scp -r pas.txt $sl:~scp -r master $sl:~scp -r slave $sl:~scp -r Slave_isnt.sh $sl:~scp -r hadoop-2.2.0.tar.gz $sl:~ssh $sl sh Slave_isnt.shdonebash Slave_isnt.sh
Wednesday, 16 April 2014
Apache_MultiNode.sh
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment