zl程序教程

您现在的位置是:首页 >  其他

当前栏目

YARN环境部署

部署 环境 yarn
2023-09-14 09:06:09 时间

1.etc/hadoop/mapred-site.xml:

<configuration>
    <property>
        <name>mapreduce.framework.name</name>
        <value>yarn</value>
    </property>
</configuration>

etc/hadoop/yarn-site.xml:

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

2.Start ResourceManager daemon and NodeManager daemon:

$ sbin/start-yarn.sh

3.Browse the web interface for the ResourceManager; by default it is available at:
ResourceManager - http://localhost:8088/
4.Run a MapReduce job.
5.When you’re done, stop the daemons with:

$ sbin/stop-yarn.sh