• 报错处理


    [hadoop@cbp1 logs]$ hdfs haadmin -getServiceState nn3
    standby
    [hadoop@cbp1 logs]$ hdfs haadmin -getServiceState nn2
    standby
    [hadoop@cbp1 logs]$ hdfs haadmin -getServiceState nn1
    active
    [hadoop@cbp1 logs]$ vim hadoop-hadoop-namenode-cbp1.chinaoly.com.log
    [hadoop@cbp1 logs]$ lsof -i:8020
    COMMAND   PID   USER   FD   TYPE    DEVICE SIZE/OFF NODE NAME
    java    15941 hadoop  301u  IPv4 151707293      0t0  TCP cbp1.chinaoly.com:intu-ec-svcdisc (LISTEN)
    java    15941 hadoop  311u  IPv4 151711840      0t0  TCP cbp1.chinaoly.com:intu-ec-svcdisc->cbp1.chinaoly.com:37298 (ESTABLISHED)
    java    15941 hadoop  312u  IPv4 151711245      0t0  TCP cbp1.chinaoly.com:intu-ec-svcdisc->cbp3.chinaoly.com:51244 (ESTABLISHED)
    java    15941 hadoop  313u  IPv4 151711247      0t0  TCP cbp1.chinaoly.com:intu-ec-svcdisc->cbp2.chinaoly.com:42308 (ESTABLISHED)
    java    15941 hadoop  314u  IPv4 151711249      0t0  TCP cbp1.chinaoly.com:intu-ec-svcdisc->cbp1.chinaoly.com:37304 (ESTABLISHED)
    java    16081 hadoop  388u  IPv4 151711839      0t0  TCP cbp1.chinaoly.com:38498->cbp2.chinaoly.com:intu-ec-svcdisc (ESTABLISHED)
    java    16081 hadoop  389u  IPv4 151708528      0t0  TCP cbp1.chinaoly.com:37298->cbp1.chinaoly.com:intu-ec-svcdisc (ESTABLISHED)
    java    16081 hadoop  390u  IPv4 151708529      0t0  TCP cbp1.chinaoly.com:46528->cbp3.chinaoly.com:intu-ec-svcdisc (ESTABLISHED)
    java    16567 hadoop  281u  IPv4 151711845      0t0  TCP cbp1.chinaoly.com:37304->cbp1.chinaoly.com:intu-ec-svcdisc (ESTABLISHED)
    [hadoop@cbp1 logs]$ pwd
    /home/hadoop/app/hadoop/logs
    [hadoop@cbp1 logs]$ hdfs haadmin -transitionToActive --forcemanual nn1  namenode状态变更为active
  • 相关阅读:
    hdu 2553 N皇后问题(dfs)
    hdu 1043 Eight(双向bfs)
    牛人的ACM经验 (转)
    康托和逆康托展开(转)
    hiho Mission Impossible 6(模拟 未提交验证。。)
    数组越界也可以这么巧~~~
    poj 1679 The Unique MST(次小生成树)
    zoj 3204 Connect them(最小生成树)
    hdu 4463 Outlets(最小生成树)
    廖雪峰Java1-2程序基础-8字符和字符串
  • 原文地址:https://www.cnblogs.com/hackerer/p/13932079.html
Copyright © 2020-2023  润新知