??????2??????Hadoop????????
????1????profile???
????vi /etc/profile
????2????profile?????????????????
????export JAVA_HOME=/usr/lib/jvm/jdk/
????export HADOOP_INSTALL=/usr/local/hadoop
????export PATH=$PATH:$HADOOP_INSTALL/bin
????export PATH=$PATH:$HADOOP_INSTALL/sbin
????export HADOOP_MAPRED_HOME=$HADOOP_INSTALL
????export HADOOP_COMMON_HOME=$HADOOP_INSTALL
????export HADOOP_HDFS_HOME=$HADOOP_INSTALL
????export YARN_HOME=$HADOOP_INSTALL
??????3???????????
????1??????Hadoop??????
????2??????hadoop-env.sh???
????export JAVA_HOME=/usr/lib/jvm/jdk/
????3??????core-site.xml???
<configuration>
/*???????????????HDFS·??*/
<property>
<name>fs.defaultFS</name>
<value>hdfs://Master:9000</value>
</property>
/*????????С: io.file.buffer.size?????4KB*/
<property>
<name>io.file.buffer.size</name>
<value>131072</value>
</property>
/*????????·??*/
<property>
<name>hadoop.tmp.dir</name>
<value>file:/home/tmp</value>
<description> Abase for other temporary directories </description>
</property>
<property>
<name>hadoop.proxyuser.hduser.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.hduser.groups</name>
<value>*</value>
</property>
</configuration>
????4?? ????yarn-site.xml???
<configuration>
<property>
<name>yarn.nodemanager.aux-services</value>
<value>mapreduce_shuffle</value>
</property>
<property>
<name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
<value>org.apache.hadoop.mapred.ShuffleHandler</value>
</property>
/*resourceManager????*/
<property>
<name>yarn.resourcemanager.address</name>
<value>Master:8030</value>
</property>
/*??????????*/
<property>
<name>yarn.resourcemanager.scheduler.address</name>
<value>Master1:8030</value>
</property>
/*resource-tracker???*/
<property>
<name>yarn.resourcemanager.resource-tracker.address</name>
<value>Master:8031</value>
/*resourcemanager?????????*/
<property>
<name>yarn.resourcemanager.admin.address</name>
<value>Master:8033</value>
</property>
/*ResourceManager??Web???????job?????????*/
<property>
<name>yarn.resourcemanager.webapp.address</name>
<value>Master:8088</value>
</property>
</configuration>