报错:Heartbeating to master:7182 failed.
Failed 报错 to Master
2023-09-11 14:14:33 时间
报错背景:
cloudera-scm-agent 可以启动并且存活,但是jps没有进程。
报错现象:
查看报错日志:/opt/cm-5.15.1/log/cloudera-scm-agent/cloudera-scm-agent.log
[29/Apr/2019 14:27:52 +0000] 10528 MainThread throttling_logger INFO (14 skipped) Identified java component java8 with full version java version "1.8.0_191" Java(TM) SE Runtime Environment (build 1.8.0_191-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode) for requested version . [29/Apr/2019 14:33:53 +0000] 10528 MainThread agent ERROR Heartbeating to master:7182 failed. Traceback (most recent call last): File "/opt/cm-5.15.1/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.15.1-py2.7.egg/cmf/agent.py", line 1441, in _send_heartbeat response = self.requestor.request('heartbeat', heartbeat_data) File "/opt/cm-5.15.1/lib64/cmf/agent/build/env/lib/python2.7/site-packages/avro-1.6.3-py2.7.egg/avro/ipc.py", line 141, in request return self.issue_request(call_request, message_name, request_datum) File "/opt/cm-5.15.1/lib64/cmf/agent/build/env/lib/python2.7/site-packages/avro-1.6.3-py2.7.egg/avro/ipc.py", line 254, in issue_request call_response = self.transceiver.transceive(call_request) File "/opt/cm-5.15.1/lib64/cmf/agent/build/env/lib/python2.7/site-packages/avro-1.6.3-py2.7.egg/avro/ipc.py", line 483, in transceive result = self.read_framed_message() File "/opt/cm-5.15.1/lib64/cmf/agent/build/env/lib/python2.7/site-packages/avro-1.6.3-py2.7.egg/avro/ipc.py", line 487, in read_framed_message response = self.conn.getresponse() File "/usr/lib64/python2.7/httplib.py", line 1113, in getresponse response.begin() File "/usr/lib64/python2.7/httplib.py", line 444, in begin version, status, reason = self._read_status() File "/usr/lib64/python2.7/httplib.py", line 408, in _read_status raise BadStatusLine(line) BadStatusLine: '' [29/Apr/2019 14:34:08 +0000] 10528 MainThread agent ERROR Heartbeating to master:7182 failed. Traceback (most recent call last): File "/opt/cm-5.15.1/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.15.1-py2.7.egg/cmf/agent.py", line 1435, in _send_heartbeat self.master_port) File "/opt/cm-5.15.1/lib64/cmf/agent/build/env/lib/python2.7/site-packages/avro-1.6.3-py2.7.egg/avro/ipc.py", line 469, in __init__ self.conn.connect() File "/usr/lib64/python2.7/httplib.py", line 824, in connect self.timeout, self.source_address) File "/usr/lib64/python2.7/socket.py", line 571, in create_connection raise err error: [Errno 111] Connection refused [29/Apr/2019 14:34:08 +0000] 10528 MainThread agent INFO Stopping agent...
报错原因:
报错信息:ERROR Heartbeating to master:7182 failed。
错误解释:向master节点的指定端口7180发送心跳检测失败。
首次启动Agent,它会生成一个uuid,路径为:/opt/cm-5.1.3/lib/cloudera-scm-agent/uuid
,如果每台机器上的Agent的uuid都是一样,就会出现报错情况。
报错解决:
进入目录:cd /opt/cm-5.15.1/lib/cloudera-scm-agent/
删除uuid:rm -rf uuid
重启agent:/opt/cm-5.15.1/etc/init.d/cloudera-scm-agent restart
相关文章
- 报错:sqoop2执行job时:Exception: Job Failed with status:3
- MySQL启动报错: Failed to start LSB start and stop MySQL
- maven desploy命令报错:Failed to execute goal org.apache.maven.plugins
- Eclipse启动 报错[Failed to load the JNI shared library jvm.dll
- flanneld启动报错Failed to create SubnetManager: parse first path segment in URL cannot contain colon
- Jenkins+GitHub报错hudson.plugins.git.GitException: Failed to fetch from GitHub 443
- 浅析npm报错ENOTFOUND npm ERR! network request to https://npm.***.com/*** failed 及 .npmrc 文件的作用、npm --verbose命令
- 解决IE报错[vue router]Failed to resolve async component default:strict 模式下不允许分配到只读属性
- 【HMS Core】升级SDK报错app_id failed: java.io.FileNotFoundException: agconnect-services.json
- docker Failed to get D-Bus connection 报错 docker run -e MYVAR1 --env MYVAR2=foo --env-file ./env.list ubuntu bash
- odoo.sql_db: Connection to the database failed
- 使用SourceTree管理Unity工程推送报错 “ RPC failed; curl 55 Send failure: Connection was aborted“
- [已解决]报错:Failed to restart network.service: Unit network.service not found
- 【Android Studio报错】:Failed to read key AndroidDebugKey from store “C:Users13181.androiddebug.keys