Cloudera Manager agent无法启动,拒绝链接 Failed! trying again in 2 second(s): [Errno 111] Connection refuse

     启动agent节点失败,提示拒绝连接,百度一下很多人说解决方式是用ps -ef | grep supervisord查看是否有进程,有的话 kill 掉(使用kill -9 会自动拉起进程,使用kill),然后重启即可,kill掉后依然无法启动

   cloudera-scm-agent.log日志文件报错如下

[01/Apr/2019 16:46:19 +0000] 97874 MainThread supervisor   INFO     Trying to connect to supervisor (Attempt 1)
[01/Apr/2019 16:46:20 +0000] 97874 MainThread supervisor   ERROR    Failed! trying again in 2 second(s): [Errno 111] Connection refused
Traceback (most recent call last):File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/supervisor.py", line 141, in connectobj = cls(cfg, os_ops_obj)File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/supervisor.py", line 88, in __init__self.identifier = self.__get_supervisor_identification()File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/util/__init__.py", line 531, in new_fnreturn fn(self, *args, **kwargs)File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/supervisor.py", line 379, in __get_supervisor_identificationreturn self.client.supervisor.getIdentification()File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__return self.__send(self.__name, args)File "/usr/lib64/python2.7/xmlrpclib.py", line 1591, in __requestverbose=self.__verboseFile "/opt/cloudera/cm-agent/lib/python2.7/site-packages/supervisor/xmlrpc.py", line 460, in requestself.connection.request('POST', handler, request_body, self.headers)File "/usr/lib64/python2.7/httplib.py", line 1041, in requestself._send_request(method, url, body, headers)File "/usr/lib64/python2.7/httplib.py", line 1075, in _send_requestself.endheaders(body)File "/usr/lib64/python2.7/httplib.py", line 1037, in endheadersself._send_output(message_body)File "/usr/lib64/python2.7/httplib.py", line 881, in _send_outputself.send(msg)File "/usr/lib64/python2.7/httplib.py", line 843, in sendself.connect()File "/usr/lib64/python2.7/httplib.py", line 824, in connectself.timeout, self.source_address)File "/usr/lib64/python2.7/socket.py", line 571, in create_connectionraise err
error: [Errno 111] Connection refused
[01/Apr/2019 16:46:22 +0000] 97874 MainThread supervisor   INFO     Trying to connect to supervisor (Attempt 2)
[01/Apr/2019 16:46:23 +0000] 97874 MainThread supervisor   ERROR    Failed! trying again in 2 second(s): [Errno 111] Connection refused
Traceback (most recent call last):File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/supervisor.py", line 141, in connectobj = cls(cfg, os_ops_obj)File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/supervisor.py", line 88, in __init__self.identifier = self.__get_supervisor_identification()File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/util/__init__.py", line 531, in new_fnreturn fn(self, *args, **kwargs)File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/supervisor.py", line 379, in __get_supervisor_identificationreturn self.client.supervisor.getIdentification()File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__return self.__send(self.__name, args)File "/usr/lib64/python2.7/xmlrpclib.py", line 1591, in __requestverbose=self.__verboseFile "/opt/cloudera/cm-agent/lib/python2.7/site-packages/supervisor/xmlrpc.py", line 460, in requestself.connection.request('POST', handler, request_body, self.headers)File "/usr/lib64/python2.7/httplib.py", line 1041, in requestself._send_request(method, url, body, headers)File "/usr/lib64/python2.7/httplib.py", line 1075, in _send_requestself.endheaders(body)File "/usr/lib64/python2.7/httplib.py", line 1037, in endheadersself._send_output(message_body)File "/usr/lib64/python2.7/httplib.py", line 881, in _send_outputself.send(msg)File "/usr/lib64/python2.7/httplib.py", line 843, in sendself.connect()File "/usr/lib64/python2.7/httplib.py", line 824, in connectself.timeout, self.source_address)File "/usr/lib64/python2.7/socket.py", line 571, in create_connectionraise err
error: [Errno 111] Connection refused

后续多次尝试寻找原因为何拒绝连接,发现防火墙开启了(iptables),关闭后,重启服务,成功。

总结一下可能出现agent无法启动的原因

1、Python文件不匹配;参考http://www.cnblogs.com/lion.net/archive/2014/09/02/3950619.html中_io的设置
2、日志文件不存在,在config.ini中把log_file放开
3、/etc/hosts/中主机和ip配置问题
4、防火墙是否关闭,(iptables/firewall)
5、端口配置,config.ini中端口是否配置的为7182
6、集群时间是否同步,安装ntp同步时间

根据这次问题发现,异常后只提示连接拒绝,无具体说明,所以防火墙如果必须开启,请注意各端口开放情况,否则异常排查较为麻烦

 

 

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/510063.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

POSIX标准

POSIX的诞生和Unix的发展是密不可分的,电气和电子工程师协会(Institute of Electrical and Electronics Engineers,IEEE)最初开发 POSIX 标准,是为了提高 UNIX 环境下应用程序的可移植性。Unix于70年代诞生于贝尔实验室…

论文翻译网站

https://tongtianta.site/

C/C++字符串输入方法比较(带回车不带回车输入)

1.scanf charstr[15]; scanf("%s",str); abc 123 1) 不读入空格和回车,从空格处结束 2) 输入字符串长度超过字符数组元素个数不报错 3) 当输入项为字符指针时,指针必须已指向确定的有足够空间的连续存储单元 4) 当为数组元素地址时…

Kafka(六)Kafka基本客户端命令操作

转载自:https://blog.51cto.com/littledevil/2147950 主题管理 创建主题 如果配置了auto.create.topics.enabletrue(这也是默认值)这样当生产者向一个没有创建的主题发送消息就会自动创建,其分区数量和副本数量也是有默认配置来…

linux平台C++开发基本知识

最近工作中,需要在linux上开发C程序。有了下面的问题。 1,linux平台C开发和win32 C开发有什么区别呢? 2,除了C语言,数据结构等必须的知识外,还需要些了解什么呢? 3,如何在linux平台开…

Impala 调用Hbase 报错 LeaseException

impala调用Hbase表数据操作时,提示 LeaseException 异常,主要原因是hbase数据过大,调用期间没有汇报心跳导致 WARNINGS: LeaseException: org.apache.hadoop.hbase.regionserver.LeaseException: lease -8355984789923245890 does not exist…

js和jsp所有页面跳转总结

Jsp页面跳转和js控制页面跳转的几种方法 Jsp 页面跳转的几种方法 1. RequestDispatcher.forward() 在服务器端起作用,当使用forward()时,Servlet engine传递HTTP请求从当前的Servlet或者是JSP到另外的一个Servlet、JSP 或普通HTML文件,也即你的form提交至a.jsp,在a.jsp用到了fo…

mitmproxy 中间人代理工具,抓包工具,linux抓包工具 mitmproxy 使用

mitmproxy是一个支持HTTP和HTTPS的抓包程序,类似Fiddler、Charles的功能,可以在linux以命令行形式的展示抓包信息 mitmdump:它是mitmproxy的命令行接口,利用它我们可以对接Python脚本,用Python实现监听后的处理。 mitm…

欧拉角转旋转矩阵

//c实现 cv::Mat eulerAnglesToRotationMatrix(cv::Vec3f& theta){// Calculate rotation about x axiscv::Mat R_x (cv::Mat_<double>(3, 3) <<1, 0, 0,0, cos(theta[0]), -sin(theta[0]),0, sin(theta[0]), cos(theta[0]));// Calculate rotation about y a…

C++常见面试题

1.在C 程序中调用被C 编译器编译后的函数&#xff0c;为什么要加extern “C”&#xff1f; 答&#xff1a;首先&#xff0c;extern是C/C语言中表明函数和全局变量作用范围的关键字&#xff0c;该关键字告诉编译器&#xff0c;其声明的函数和变量可以在本模块或其它模块中使用。…

Ajax学习总结+案例

一、AJAX简介 1、Asynchronous JavaScript And XML指异步 JavaScript 及 XML 2、老技术新用法。是基于JavaScript、XML、HTML、CSS新用法 二、同步和异步&#xff08;理解&#xff09; 三、第一个异步请求案例&#xff08;熟悉编码步骤&#xff09; 四、XmlHttpRequest&…

spark 2.2 读取 Hadoop3.0 数据异常 org.apache.hadoop.hdfs.web.HftpFileSystem cannot access its superinterfa

spark 2.2 读取 Hadoop3.0 数据异常 Exception in thread "main" java.lang.IllegalAccessError: class org.apache.hadoop.hdfs.web.HftpFileSystem cannot access its superinterface org.apache.hadoop.hdfs.web.TokenAspect$TokenManagementDelegatorat java.la…

安装open3d python

安装&#xff1a; pip install open3d 测试是否安装成功 python -c "import open3d as o3d"

ajax测试代码

//jsp文件 <% page language"java" contentType"text/html; charsetutf-8"pageEncoding"utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> …

Spark 运行内存不足Not enough space to cache rdd in memory,Container killed by YARN for exceeding memory

日志报错&#xff08;WARN类型最后执行成功可以忽略&#xff09;&#xff1a; 19/04/15 12:35:37 INFO memory.MemoryStore: Will not store rdd_2_5119/04/15 12:35:37 WARN memory.MemoryStore: Not enough space to cache rdd_2_51 in memory! (computed 1109.7 MB so far)…

opencv 读取CV_16U图像 c++

cv::Mat depthImage cv::imread("../data1/depth0.png",-1);

Spark 某两个节点数据分析速度慢 - hbase数据删除(分裂) 元信息未删除导致 There is an overlap in the region chain.

基于Hbase2.0&#xff0c;Spark2.2 问题描述 执行Spark处理Hbase数据时&#xff0c;遇到某两个Excutor处理速度特别慢&#xff0c;如图 正常速度10多分钟 左右处理完成&#xff0c; 一个多小时有另外一个处理完成&#xff0c;还有一个在处理中。 分析原因 1.查看hbase数据分…

servlet中用out.print输出中文为“乱码”如何解决

最开始准备再servlet中加1.request.setCharacterEncoding("UTF-8")的作用是设置对客户端请求进行重新编码的编码。显然这个作用范围不同不可取。2.response.setCharacterEncoding("UTF-8")的作用是指定对服务器响应进行重新编码的编码。 这是在服务器端的编…

python pip清华源安装库

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn imageio

Spark NaiveBayes Demo 朴素贝叶斯分类算法

模型sql文件 :https://pan.baidu.com/s/1hugrI9e使用数据链接 https://pan.baidu.com/s/1kWz8fNhNaiveBayes Spark Mllib训练 package com.xxx.xxx.xxximport java.io.ObjectInputStream import java.sql.{Connection, DriverManager, PreparedStatement} import java.util.{A…