core-site.xml
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost/</value>
</property>
<!--临时文件目录-->
<property>
<name>hadoop.tmp.dir</name>
<value>/Users/ruanzhiming/cloudera/app/tmp</value>
</property>
hdfs-site.xml
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
mapred-site.xml
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
yarn-site.xml
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
<!--yarn日志收集可在WebUI中查看-->
<property>
<name>yarn.log-aggregation-enable</name>
<value>true</value>
</property>