cdh的agent无法启动

查看supervisord的日志有如下错误:

[root@cdh1 ~]#  cat /opt/cm-5.10.0/log/cloudera-scm-agent/supervisord.out 

/opt/cm-5.10.0/lib64/cmf/agent/build/env/lib64/python2.7/site-packages/supervisor-3.0-py2.7.egg/supervisor/options.py:323: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
  'Supervisord is running as root and it is searching '
Error: Another program is already listening on a port that one of our HTTP servers is configured to use.  Shut this program down first before starting supervisord.

For help, use /opt/cm-5.10.0/lib64/cmf/agent/build/env/bin/supervisord -h

解决办法:


[root@cdh1 ~]# ps -ef | grep supervisord
root     14586     1  0 17:38 ?        00:00:00 /usr/lib64/cmf/agent/build/env/bin/python /usr/lib64/cmf/agent/build/env/bin/supervisord
root     26945  2348  0 17:58 pts/0    00:00:00 grep --color=auto supervisord
[root@cdh1 ~]# kill -s SIGTERM 14586
[root@cdh1 ~]# ps -ef | grep supervisord
root     27509  2348  0 17:58 pts/0    00:00:00 grep --color=auto supervisord
[root@cdh1 ~]# ps -ef | grep supervisord
root     27515 27507  0 17:58 ?        00:00:00 /usr/lib64/cmf/agent/build/env/bin/python /usr/lib64/cmf/agent/build/env/bin/supervisord
root     27517  2348  0 17:58 pts/0    00:00:00 grep --color=auto supervisord
[root@cdh1 ~]# kill -s SIGTERM 27507
[root@cdh1 ~]# ps -ef | grep supervisord
root     28850  2348  0 17:59 pts/0    00:00:00 grep --color=auto supervisord
[root@cdh1 ~]# ps -ef | grep supervisord
root     28853  2348  0 17:59 pts/0    00:00:00 grep --color=auto supervisord
[root@cdh1 ~]# ps -ef | grep supervisord
root     28855  2348  0 17:59 pts/0    00:00:00 grep --color=auto supervisord
[root@cdh1 ~]# ps -ef | grep supervisord
root     28857  2348  0 17:59 pts/0    00:00:00 grep --color=auto supervisord
[root@cdh1 ~]# ps -ef | grep supervisord
root     28859  2348  0 17:59 pts/0    00:00:00 grep --color=auto supervisord
[root@cdh1 ~]# ps -ef | grep supervisord
root     28861  2348  0 17:59 pts/0    00:00:00 grep --color=auto supervisord


直到确保supervisord被杀死,然后重启agent

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值