码迷,mamicode.com
首页 > 其他好文 > 详细

YARN环境搭建

时间:2019-03-21 00:50:19      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:http   top   services   oop   提交   work   .sh   ado   res   

mapred-site.xml
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>

yarn-site.xml
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>

启动yarn:sbin/start-yarn.sh

验证是否启动成功
jps
ResourceManager
NodeManager

web: http://hadoop001:8088

停止yarn: sbin/stop-yarn.sh

提交mr作业到yarn上运行: wc

/home/hadoop/app/hadoop-2.6.0-cdh5.7.0/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.6.0-cdh5.7.0.jar

hadoop jar /home/hadoop/app/hadoop-2.6.0-cdh5.7.0/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.6.0-cdh5.7.0.jar wordcount /input/wc/hello.txt /output/wc/

YARN环境搭建

标签:http   top   services   oop   提交   work   .sh   ado   res   

原文地址:https://www.cnblogs.com/arthurLance/p/10569058.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!