美文网首页
run a MapReduce job on YARN in a

run a MapReduce job on YARN in a

作者: tonyemail_st | 来源:发表于2017-09-24 22:32 被阅读0次

配置文件

[root@hadoop hadoop-2.7.4]# cp etc/hadoop/mapred-site.xml.template etc/hadoop/mapred-site.xml

etc/hadoop/mapred-site.xml

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

etc/hadoop/yarn-site.xml

<configuration>

<!-- Site specific YARN configuration properties -->
    <property>
        <name>yarn.nodemanager.aux-services</name>
        <value>mapreduce_shuffle</value>
    </property>
</configuration>

启动hdfs和yarn

[root@hadoop hadoop-2.7.4]# start-yarn.sh 
starting yarn daemons
starting resourcemanager, logging to /usr/hadoop/hadoop-2.7.4/logs/yarn-root-resourcemanager-hadoop.out
localhost: starting nodemanager, logging to /usr/hadoop/hadoop-2.7.4/logs/yarn-root-nodemanager-hadoop.out
[root@hadoop hadoop-2.7.4]# jps
13640 NodeManager
13546 ResourceManager
13867 Jps
[root@hadoop hadoop-2.7.4]# start-dfs.sh 
Starting namenodes on [localhost]
localhost: starting namenode, logging to /usr/hadoop/hadoop-2.7.4/logs/hadoop-root-namenode-hadoop.out
localhost: starting datanode, logging to /usr/hadoop/hadoop-2.7.4/logs/hadoop-root-datanode-hadoop.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/hadoop/hadoop-2.7.4/logs/hadoop-root-secondarynamenode-hadoop.out
[root@hadoop hadoop-2.7.4]# jps
14049 NameNode
14150 DataNode
14343 SecondaryNameNode
13640 NodeManager
13546 ResourceManager
14458 Jps

执行mapreduce


[root@hadoop hadoop-2.7.4]# hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.4.jar grep input output 'dfs[a-z.]+'
......省略一堆输出

检验结果

[root@hadoop hadoop-2.7.4]# hdfs dfs -cat /user/root/output/*
6       dfs.audit.logger
4       dfs.class
3       dfs.server.namenode.
2       dfs.period
2       dfs.audit.log.maxfilesize
2       dfs.audit.log.maxbackupindex
1       dfsmetrics.log
1       dfsadmin
1       dfs.servers
1       dfs.replication
1       dfs.file

相关文章

  • run a MapReduce job on YARN in a

    配置文件 etc/hadoop/mapred-site.xml etc/hadoop/yarn-site.xml ...

  • 基于YARN的SPARK管理过程

    基于YARN的SPARK管理过程 前言 MapReduce与Spark中Job概念的区别 在MapReduce中的...

  • 07.YARN

    YARN 一、YARN概述 1). YARN产生背景 MapReduce1.x ==> MapReduce2.xm...

  • flink 提交job

    独立集群提交 yarn session yarn single job

  • 【复习001】-20170722

    一、大数据基础 二、MapReduce和Yarn功能与架构Yarn(集群资源管理)的组件 三、MapReduce客...

  • YARN配置

    YARN 是从 MapReduce 中分离出来的,负责资源管理与任务调度。YARN 运行于 MapReduce 之...

  • MapReduce作业运行机制

    MapReduce作业运行简单而言,客户端向负责协调集群上计算机资源分配的YARN资源管理器提交作业job,YAR...

  • Hive

    HadoopHDFS 存储数据YARN 资源管理MapReduce 处理数据Mapreduce is hard...

  • spark 中参数参考值说明

    master yarn 因为 E-MapReduce 使用 Yarn 的模式,所以这里只能是 yarn 模式。 y...

  • Hadoop2.0 | YARN架构

    模型演化 第一代MapReduce框架 第二代MapReduce框架 编程模型 YARN基本组成结构 YARN主要...

网友评论

      本文标题:run a MapReduce job on YARN in a

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