美文网首页零基础大数据系列
Hadoop:3、Hadoop伪分布式部署(MapReduce+

Hadoop:3、Hadoop伪分布式部署(MapReduce+

作者: CoderF | 来源:发表于2017-12-18 13:15 被阅读0次

    MapReduce:计算

    Yarn: 资源(CPU、内存等)调度和作业(程序)平台

    • 修改mapred-site.xml

        [hadoop@hadoop-01 ~]# cd /opt/software/hadoop/etc/hadoop
        [hadoop@hadoop-01 hadoop]# cp mapred-site.xml.template  mapred-site.xml
        [hadoop@hadoop-01 hadoop]# vi mapred-site.xml
        <configuration>
            <property>
                <name>mapreduce.framework.name</name>
                <value>yarn</value>
            </property>
        </configuration>
      
    • 修改yarn-site.xml

        [hadoop@hadoop-01 hadoop]# vi yarn-site.xml
        <configuration>
            <property>
                <name>yarn.nodemanager.aux-services</name>
                <value>mapreduce_shuffle</value>
            </property>
        </configuration>
      
    • 启动

        [hadoop@hadoop-01 hadoop]# cd ../../
        [hadoop@hadoop-01 hadoop]# sbin/start-yarn.sh
      

      访问:http://192.168.137.130:8088

    • 关闭

        [hadoop@hadoop-01 hadoop]# sbin/stop-yarn.sh
      

    相关文章

      网友评论

        本文标题:Hadoop:3、Hadoop伪分布式部署(MapReduce+

        本文链接:https://www.haomeiwen.com/subject/eztmwxtx.html