Preparing for the Linux environment "JAVA,IP,HOSTNAME,HOSTS,IPTABLES,CHKCONFIG,SSH" will not be configured to find 1.0 pseudo-distribution environment under construction
Download stable version 2.2.0
Modify the configuration file under the Etc/hadoop directory Core-site.xml,hdfs-site.xml,yarn-site.xml,mapred-site.xml
File Core-site.xml
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://hadoop0:9000</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/usr/local/hadoop-2.2.0/tmp</value>
</property>
<property>
<name>fs.trash.interval</name>//Opener Trash box function
<value>1440</value>
</property>
</configuration>
File Hdfs-site.xml
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>
</configuration>
File Yarn-site.xml
<configuration>
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
</configuration>
File Mapred-site.xml
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
</configuration>
Start formatting
Bin/hdfs Namenode-format
Start HDFs
sbin/hadoop-daemon.sh Start Namenode
sbin/hadoop-daemon.sh Start Datanode
Start yarn
sbin/yarn-daemon.sh start ResourceManager
sbin/yarn-daemon.sh Start NodeManager
Start Historyserver
sbin/mr-jobhistory-daemon.sh Start Historyserver
Construction of pseudo-distributed environment in Hadoop2.0