Apache-MultiNode-Insatallation-Shellscript==========================================Apache Hadoop MultiNode Insatallation ShellscriptYarn version MultiNode Installation Shell scriptPleace download this two script of Apache_MultiNode.sh and Slave_Install.sh.Just do before start run the script run this commands in namenode bellow:ssh-keygen -t rsassh-copy-id -i ~/.ssh/id_rsa.pub $USER@tony.comssh-copy-id -i ~/.ssh/id_rsa.pub $USER@tony1.comssh-copy-id -i ~/.ssh/id_rsa.pub $USER@tony2.comAnd type Bellow command in your ubuntu michine:bash Multinode_Install.shThen it will ask NameNode ip address and hostname of NameNode give to example of bellow given type:192.168.0.1 tony.comThen it will ask number of DataNode You want to install in Your cluster give to example of bellow given type:3Then it will ask DataNode ip address and hostname of DataNodes give to example of bellow given type:Note if you want to use NameNode as a DataNode give NameNode ipaddress and hostname include DataNode ipaddress and hostname:192.168.0.1 tony.com192.168.0.2 tony1.com192.168.0.3 tony2.comSet the environment path and hadoop home in /etc/environmentIn path : /usr/local/had/hadoop/bin:/usr/local/hadoop/sbinHADOOP_HOME="/usr/local/had/hadoop"If hav any problem send mail to tony.ntw@gmail.com
hadoop Multinode Apache shell script
Wednesday, 16 April 2014
READ.txt
Apache_MultiNode.sh
#!/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
Subscribe to:
Posts (Atom)