zoukankan      html  css  js  c++  java
  • JobHistory的使用

    开启jobhistory功能步骤:
    1.修改etc/hadoop/mapred-site.xml文件
    <configuration>
    <property>
    <name>mapreduce.framework.name</name>
    <value>yarn</value>
    </property>
    <property>
    <name>mapreduce.jobhistory.address</name>
    <value>master:10020</value>
    <description>MapReduce JobHistory Server IPC host:port</description>
    </property>
    <property>
    <name>mapreduce.jobhistory.webapp.address</name>
    <value>master:19888</value>
    <description>MapReduce JobHistory Server Web UI host:port</description>
    </property>
    <property>
    <name>mapreduce.jobhistory.done-dir</name>
    <value>/history/done</value>
    </property>
    <property>
    <name>mapreduce.jobhistory.intermediate-done-dir</name>
    <value>/history/done_intermediate</value>
    </property>
    </configuration>

    2.修改etc/hadoop/yarn-site.xml文件
    <configuration>
    <property>
    <name>yarn.nodemanager.aux-services</name>
    <value>mapreduce_shuffle</value>
    </property>
    <property>
    <name>yarn.log-aggregation-enable</name>
    <value>true</value>
    </property>
    </configuration>

    3.重启yarn
    [root@master sbin]# ./start-yarn.sh

    4.开启jobhistory服务
    [root@master sbin]# ./mr-jobhistory-daemon.sh start historyserver
    starting historyserver, logging to /root/app/hadoop-2.6.0-cdh5.7.0/logs/mapred-root-historyserver-master.out

    5.观察进程
    [root@master sbin]# jps
    3436 NodeManager
    3027 DataNode
    4599 Jps
    3345 ResourceManager
    4530 JobHistoryServer
    3215 SecondaryNameNode
    2942 NameNode

    6.重新提交mapreduce任务
    [root@master hadoop-2.6.0-cdh5.7.0]# cd share/hadoop/mapreduce
    [root@master mapreduce]# hadoop jar hadoop-mapreduce-examples-2.6.0-cdh5.7.0.jar pi 2 3

    7.查看hdfs上jobhistory设置的历史日志目录
    [root@master sbin]# hadoop dfs -ls /

    8.查看web端信息(注意端口号)
    http://192.168.56.100:8088/

  • 相关阅读:
    while (cin>>str)退出死循环
    内存溢出(heap corruption detected:)
    二叉树的遍历--递归+非递归(两种)
    直接插入排序(带哨兵和不带哨兵)
    二项队列
    左式堆
    优先队列之二叉堆与d-堆
    centos6.4 安装code::blocks
    结构之美——优先队列基本结构(四)——二叉堆、d堆、左式堆、斜堆
    数据结构与算法分析-开放定址散列表的实现
  • 原文地址:https://www.cnblogs.com/LEPENGYANG/p/13967216.html
Copyright © 2011-2022 走看看