????1?????JDK
????1?? ????JDK????
????2?? ????JDK?????
????3??????????????????/etc/profile???????′???
????JAVA_HOME=/home/hadoop/jdk1.6.0_38
????PATH=$JAVA_HOME/bin:$PATH
????CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/jre/lib/dt.jar:$JAVA_HOME/jre/lib/tools.jar
????export JAVA_HOME PATH CLASSPATH
????4???profile?????????Ч
????source /etc/profile
????2?????Scala
????Scala ???????????汾??Scala????????????Spark????漲??Scala?汾?????????????Scala????????http://www.scala-lang.org/
????1?? ????Scala
????2??????????
????tar -zxvf scala-2.10.4.tgz
????3?????????????????/etc/profile??????????????
????export SCALA__HOME=/home/hadoop/scala-2.10.4/scala-2.10.4
????export PATH=${SCALA_HOME}/bin:$PATH
????4?????profile?????????Ч
????source /etc/profile
????3??????SSH????????
????????????????????к?????????á????磬???????pssh??Linux?????????з????????????????????????дShell??Python???????????
????Spark??Master?????Worker?????????????ssh???з????????????Master????????????????????????????????Master??????????????Worker??
????Master?????????????????????????????????Worker???????Master?????????????????????????????????????????????Worker?????Master???ssh????Worker
????1????Master?????????????????
????ssh-keygen-trsa
????2???????????????????
?????????root?????????/root/.ssh/?????????????id_rsa????????id_rsa.pub??
??????Master???id_rsa.pub???????Worker??authorized_keys???
????3??????Master??id_rsa.pub???
????scp id_rsa.pub root@172.20.14.144:/home
????/*?????pssh??????????*/
????4?????worker??????????????
????cat /home/id_rsa.pub >> /root/.ssh/authorized_keys
????/*?????pssh??????????*/
??????????????????Master??????????Worker?????????Worker??authorized_keys?????????????? chmod 600 authorized_keys
????4?????Hadoop
??????1??????hadoop-2.2.0
????1???????Hadoop?????????????Hadoop
????wget http://www.trieuvan.com/apache/hadoop/common/hadoop-2.2.0/hadoop-2.2.0.tar.gz
????2?????tar??
????tar -vxzf hadoop-2.2.0.tar.gz -C /usr/local
????cd /usr/local
????mv hadoop-2.2.0 hadoop
????chown -R hduser:hadoop hadoop