YARN环境搭建

Posted arthurlance

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了YARN环境搭建相关的知识,希望对你有一定的参考价值。

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环境搭建的主要内容,如果未能解决你的问题,请参考以下文章

(超详细) Spark环境搭建(Local模式 StandAlone模式Spark On Yarn模式)

:Spark环境搭建-Local

:环境搭建-Spark on YARN

Yarn环境搭建

12-ResourceMangerHA-环境搭建

HA-Flink集群环境搭建(Yarn模式)-视频教程