Installing hadoop-2.6.0 under Hadoop window

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.