Construction of pseudo-distributed environment in Hadoop2.0

Source: Internet
Author: User

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

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.