[hadoop@itnetcn source]$ cd $HADOOP_PREFIX/etc/hadoop
[hadoop@itnetcn hadoop]$ vi core-site.xml
#-------------------------------------------------------#
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://10.211.55.40:9000</value>
<final>true</final>
</property>
</configuration>
#-------------------------------------------------------#
[hadoop@itnetcn hadoop]$ vi hdfs-site.xml
#-------------------------------------------------------#
<configuration>
<property>
<name>dfs.namenode.name.dir</name>
<value>file:/hadoop/dfs/name</value>
<final>true</final>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>file:/hadoop/dfs/data</value>
<final>true</final>
</property>
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>
</configuration>
#-------------------------------------------------------#
[hadoop@itnetcn hadoop]$ cp mapred-site.xml.template mapred-site.xml
[hadoop@itnetcn hadoop]$ vi mapred-site.xml
#-------------------------------------------------------#
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
<property>
<name>mapred.system.dir</name>
<value>file:/hadoop/mapred/system</value>
<final>true</final>
</property>
<property>
<name>mapred.local.dir</name>
<value>file:/hadoop/mapred/local</value>
<final>true</final>
</property>
</configuration>
#-------------------------------------------------------#
[hadoop@itnetcn hadoop]$ vi yarn-site.xml
#-------------------------------------------------------#
<configuration>
<!-- Site specific YARN configuration properties -->
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
<property>
<name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
<value>org.apache.hadoop.mapred.ShuffleHandler</value>
</property>
</configuration>
#-------------------------------------------------------#