zoukankan      html  css  js  c++  java
  • 查看hadoop日志的方法

    查看日志的方法

    hadoop-hadoop-datanode-hadoop002.log
    hadoop-用户-进程名称-机器名称
    hadoop日志分为log日志和out日志,我们基本上只看log日志
    [hadoop@hadoop001 hadoop-2.6.0-cdh5.7.0]$ cd logs/
    [hadoop@hadoop001 logs]$ ll
    total 1840
    -rw-rw-r-- 1 hadoop hadoop 143929 Feb 19 20:15 hadoop-hadoop-datanode-hadoop001.log
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 18 21:34 hadoop-hadoop-datanode-hadoop001.out
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 18 20:01 hadoop-hadoop-datanode-hadoop001.out.1
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 18 19:38 hadoop-hadoop-datanode-hadoop001.out.2
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 17 14:48 hadoop-hadoop-datanode-hadoop001.out.3
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 17 12:21 hadoop-hadoop-datanode-hadoop001.out.4
    -rw-rw-r-- 1 hadoop hadoop 1369629 Feb 19 21:40 hadoop-hadoop-namenode-hadoop001.log
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 18 21:34 hadoop-hadoop-namenode-hadoop001.out
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 18 20:01 hadoop-hadoop-namenode-hadoop001.out.1
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 18 19:37 hadoop-hadoop-namenode-hadoop001.out.2
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 17 14:48 hadoop-hadoop-namenode-hadoop001.out.3
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 17 12:21 hadoop-hadoop-namenode-hadoop001.out.4
    -rw-rw-r-- 1 hadoop hadoop 208892 Feb 19 21:35 hadoop-hadoop-secondarynamenode-hadoop001.log
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 18 21:34 hadoop-hadoop-secondarynamenode-hadoop001.out
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 18 20:01 hadoop-hadoop-secondarynamenode-hadoop001.out.1
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 18 19:38 hadoop-hadoop-secondarynamenode-hadoop001.out.2
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 17 14:49 hadoop-hadoop-secondarynamenode-hadoop001.out.3
    -rw-rw-r-- 1 hadoop hadoop 718 Feb 17 12:21 hadoop-hadoop-secondarynamenode-hadoop001.out.4
    -rw-rw-r-- 1 hadoop hadoop 0 Feb 17 12:21 SecurityAuth-hadoop.audit
    drwxr-xr-x 2 hadoop hadoop 4096 Feb 19 21:39 userlogs
    -rw-rw-r-- 1 hadoop hadoop 32298 Feb 19 19:59 yarn-hadoop-nodemanager-hadoop001.log
    -rw-rw-r-- 1 hadoop hadoop 702 Feb 19 19:59 yarn-hadoop-nodemanager-hadoop001.out
    -rw-rw-r-- 1 hadoop hadoop 35369 Feb 19 20:09 yarn-hadoop-resourcemanager-hadoop001.log
    -rw-rw-r-- 1 hadoop hadoop 2078 Feb 19 20:01 yarn-hadoop-resourcemanager-hadoop001.out
    [hadoop@hadoop001 logs]$
    1.vi :/搜索
    2.tail -200f xxx.log 查看日志的倒数200行 另外窗口重启进程 为了再现这个错误

    3.rz上传到windows editplus去定位查看 备份

  • 相关阅读:
    图片上传-下载-删除等图片管理的若干经验总结3-单一业务场景的完整解决方案
    图片上传-下载-删除等图片管理的若干经验总结2
    HDU 1195 Open the Lock
    HDU 1690 Bus System
    HDU 2647 Reward
    HDU 2680 Choose the best route
    HDU 1596 find the safest road
    POJ 1904 King's Quest
    CDOJ 889 Battle for Silver
    CDOJ 888 Absurdistan Roads
  • 原文地址:https://www.cnblogs.com/xuziyu/p/10403541.html
Copyright © 2011-2022 走看看