First, download the Hadoop website
http://hadoop.apache.org
https://archive.apache.org/dist/hadoop/common/
hadoop-2.6.0
Administrator Identity Decompression D:\Hadoop\hadoop-2.6.0
Second, the download of winutils
Also need to download Winutils.exe,requires a corresponding version. Address Https://github.com/steveloughran/winutils, unzip directly after download, overwriting the contents of the bin directory directly into the bin of Hadoop.
Winutils.exe---A service process that Hadoop needs to run
Third, Hadoop configuration
1. Environment variable Configuration
hadoop_home=d:\hadoop\hadoop-2.6.0--New
Path=%hadoop_home%\bin--Modify add
2.hadoop file Configuration
Under the directory D:\Hadoop\hadoop-2.6.0\etc\hadoop
File 1 Hadoop-env.cmd
Set java_home=c:\java64\jdk1.8.0_171
File 2 Core-site.xml
<configuration>
<property>
<name>Fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
File 3:hdfs-site.xml
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>Dfs.namenode.name.dir</name>
<value>File:/hadoop/data/dfs/namenode</value>
</property>
<property>
<name>Dfs.datanode.data.dir</name>
<value>File:/hadoop/data/dfs/datanode</value>
</property>
</configuration>
File 4:mapred-site.xml mapred-site.xml is copy mapred-site.xml.template, remove template
<configuration>
<property>
<name>Mapreduce.framework.name</name>
<value>Yarn</value>
</property>
</configuration>
File 5:yarn-site.xml
<configuration>
<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>
Iv. starting Hadoop
Go to the Hadoop–>bin directory
Hadoop Namenode-format//formatted HDFS
Cd.. /sbin//Enter into the Sbin directory
Start-dfs.cmd//Start DFS First
Start-yarn.cmd//Start yarn again
Or
Start-all.cmd//Start DFS First, and then start yarn
V. Results of the launch
Enter http://localhost:8088 in the address bar
Enter http://localhost:50070 in the address bar
Install hadoop-2.6.0 under Hadoop window