Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Build stand-alone Hadoop

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

1. Download hadoop-2.7.3.tar.gz

http://www.apache.org/dyn/closer.cgi/hadoop/common/hadoop-2.7.3/hadoop-2.7.3.tar.gz

2. Unzip hadoop-2.7.3.tar.gz

3. Go to Hadoop-2.7.3 directory

4./hadoop/etc

(1)core-site.xml

(2)hdfs-site.xml

Note: Because it is a single machine, the number of copies is 1; the directory cannot be tmp to avoid data loss;

(3)mapred-site.xml

Note: If this file is not available, cp mapred-site.xml. template mapred-site.xml

(4)yarn-site.xml

5. Format hdfs

bin/hadoop namenode -format

6. Start hadoop

sbin/hadoop-daemon.sh start namenode

sbin/hadoop-daemon.sh start datanode

sbin/yarn-daemon.sh start resourcemanager

sbin/yarn-daemon.sh start nodemanager

jps (see if it starts successfully)

7. Check Hadoop and Yarn status

http://localhost:50070

http://localhost:8088

8. test

bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.3.jar pi 5 1000

The yarn page allows you to view the status of the task.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report