First, the environment
Windows 7 64bit
JDK 1.8
Hadoop 2.7.4 : http://hadoop.apache.org/releases.html
Second, step
1) Download and install the JDK, and remember to set the JAVA_HOME system environment variable
2) download and unzip the hadoop-2.7.4.tar.gz file package ; I unzipped under D:\, create hadoop_home environment variable
3) Download the link library under window, containing the Hadoop.dll and winutils
4) to the Hadoop root directory, if there is no Data folder to create a new, and then under data created Datanode, namenode two folders
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/A6/5E/wKioL1nNoXvxTNgJAAAbjh-cq8M437.png-wh_500x0-wm_ 3-wmp_4-s_1353320162.png "title=" qq picture 20170929092647.png "alt=" Wkiol1nnoxvxtngjaaabjh-cq8m437.png-wh_50 "/>
5) configuration Basic has been completed, if you want to change access to the path, you can go to the Etc/hadoop directory under the core-site.xml file modification:
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
6) Click Command Prompt (Administrator) to run the command prompt and switch to the Hadoop installation directory. Do the following
1, switch to Etc/hadoop directory, run Hadoop-env.cmd
2. Switch to the bin directory then, format the HDFs file system, execute the command: HDFs Namenode-format
3 and here, your Hadoop will work. You can view the version of Hadoop versions
4. start CD to sbin directory of Hadoop and run Start-all.cmd
5 . Enter http:\\localhost:8088 in the browser to open the Web Management Web page for Hadoop.
This article is from "Dormant" blog, please make sure to keep this source http://lihao001.blog.51cto.com/872112/1969616
Deploy Hadoop2.7.4 under Windows