报错背景:

cloudera-scm-agent 可以启动并且存活,但是jps没有进程。

报错现象:

查看报错日志:/opt/cm-5.15.1/log/cloudera-scm-agent/cloudera-scm-agent.log

[/Apr/ :: +]  MainThread throttling_logger INFO     ( 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) -Bit Server VM (build 25.191-b12, mixed mode)  for requested version .
[/Apr/ :: +] MainThread agent ERROR Heartbeating to master: 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 , 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 , 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 , 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 , 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 , in read_framed_message
response = self.conn.getresponse()
File "/usr/lib64/python2.7/httplib.py", line , in getresponse
response.begin()
File "/usr/lib64/python2.7/httplib.py", line , in begin
version, status, reason = self._read_status()
File "/usr/lib64/python2.7/httplib.py", line , in _read_status
raise BadStatusLine(line)
BadStatusLine: ''
[/Apr/ :: +] MainThread agent ERROR Heartbeating to master: 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 , 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 , in __init__
self.conn.connect()
File "/usr/lib64/python2.7/httplib.py", line , in connect
self.timeout, self.source_address)
File "/usr/lib64/python2.7/socket.py", line , in create_connection
raise err
error: [Errno ] Connection refused
[/Apr/ :: +] 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

最新文章

  1. Jps命令—使用详解
  2. 设置DataSource后DateGridView不显示的问题
  3. 关于js中两种定时器的设置及清除
  4. memcached学习笔记2--安装及命令
  5. 09_platform-tools简介&常见adb指令
  6. C++十进制转换为二进制
  7. JAVA MemCache 史无前例的详细讲解【转】
  8. 大整数相乘的C实现
  9. WinPcap编程(三)
  10. 创建和管理表【weber出品必属精品】
  11. SD卡在单片机上的应用
  12. Leet code —Jump Game
  13. Javaweb---服务器Tomcat配置
  14. sqlserver提高篇续集
  15. spring boot 整合mybatis + swagger2
  16. JDK AtomicInteger 源码分析
  17. NumPy 学习笔记(三)
  18. 智能POS(轻餐、正餐同理)桌台页面已结金额,只做参考,不做对账使用
  19. jackson工具类 对象转字符串 -- 字符串转对象
  20. Dethe is my Finaunce金融

热门文章

  1. CSS效果:checkbox点选效果
  2. vi编辑器之删除操作
  3. 2018-4-25 html基础知识
  4. 【POI】java对excel的读写操作
  5. C语言链表:删除有序链表中大于mink小于maxk的元素
  6. react-redux性能优化之reselect
  7. css3实现条纹以及方格斜纹背景
  8. 【OO学习】OO第二单元作业总结
  9. 2018-2019-2 20165313 Exp3 免杀原理与实践
  10. 学习笔记TF066:TensorFlow移动端应用,iOS、Android系统实践