hadoop-2.5.0-cdh5.2.0 Pseudo-Distribution pattern construction
Note: The premise is that you have compiled the Hadoop version or Cloudrea company's CDH version. Big Data discussion groups: 288396468
1, Core-site.xml
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://itr-mastertest01:9000</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/usr/local/hadoop-2.5.0-cdh5.2.0/tmp</value>
</property>
<property>
<name>fs.trash.interval</name>
<value>2000</value>
</property>
</configuration>
2, Hdfs-site.xml
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>
</configuration>
3, Yarn-site.xml
<configuration>
<property>
<name>yarn.resourcemanager.hostname</name>
<value>itr-mastertest01</value>
</property>
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
</configuration>
4, Mapred-site.xml
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
</configuration>
5, Slaves
itr-mastertest01
5. Format HDFs File system
Bin/hdfs Namenode-format
6. Start
hadoop-daemon.sh Start Namenode/datanode
yarn-daemon.sh Start Resourcemanager/nodemanager
7. Testing
Hadoop jar Hadoop-mapreduce-examples-2.4.0.jar Wordcount/testdata/output