hadoop-2.5.0-cdh5.2.0 Pseudo-Distribution pattern construction

Source: Internet
Author: User
Tags file system

hadoop-2.5.0-cdh5.2.0 Pseudo-Distribution pattern construction


Note: The premise is that you have compiled the Hadoop version or Cloudrea company's CDH version. Big Data discussion groups: 288396468


1, Core-site.xml
<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://itr-mastertest01:9000</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/usr/local/hadoop-2.5.0-cdh5.2.0/tmp</value>
</property>
<property>
<name>fs.trash.interval</name>
<value>2000</value>
</property>
</configuration>
2, Hdfs-site.xml
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>
</configuration>
3, Yarn-site.xml
<configuration>
<property>
<name>yarn.resourcemanager.hostname</name>
<value>itr-mastertest01</value>
</property>
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
</configuration>
4, Mapred-site.xml
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
</configuration>


5, Slaves
itr-mastertest01


5. Format HDFs File system
Bin/hdfs Namenode-format


6. Start
hadoop-daemon.sh Start Namenode/datanode
yarn-daemon.sh Start Resourcemanager/nodemanager


7. Testing
Hadoop jar Hadoop-mapreduce-examples-2.4.0.jar Wordcount/testdata/output

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.