报错处理

[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

 

posted @ 2020-11-05 15:49  Simon92  阅读(176)  评论(0编辑  收藏  举报