为什么我收到此错误“安装失败.无法从代理接收心跳."在cloudera安装中 [英] why i am getting this error "Installation failed. Failed to receive heartbeat from agent." in cloudera installtion

查看:87
本文介绍了为什么我收到此错误“安装失败.无法从代理接收心跳."在cloudera安装中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在本地计算机上安装cloudera Manager.尝试添加新主机时出现以下错误

I am installing cloudera manager on local machine. When trying to add new host getting following error

安装失败.无法从代理接收心跳.

  • 确保正确配置了主机的主机名.

  • Ensure that the host's hostname is configured properly.

确保在Cloudera Manager服务器上可访问端口7182(检查防火墙规则).

Ensure that port 7182 is accessible on the Cloudera Manager server (check firewall rules).

确保要添加的主机上的端口9000和9001空闲.

Ensure that ports 9000 and 9001 are free on the host being added.

检查代理在/var/log/cloudera-scm-agent/所在主机上的日志添加(某些日志可以在安装详细信息中找到.)

Check agent logs in /var/log/cloudera-scm-agent/ on the host being added (some of the logs can be found in the installation details).

我检查了日志,显示出主机名与规范名称不同

i checked the logs,it shows like hostname differs from canonical name

因此,我还从/etc/resolv.conf 更改了主机名.但仍然出现sam错误

So I also changed the hostname from /etc/resolv.conf But still getting sam error

推荐答案

要解决此问题,您需要首先检查服务器服务列表中打开的所有端口,并将其列出为端口号,请使用以下命令: sudo netstat -lpten

To resolve this issue you need to check first all port opened on your server service listing to the port no, use command: sudo netstat -lpten

检查是否有任何东西在9000或90001上运行,大多数设置所需的Java服务都在端口9000上运行,cloudera-scm-agent listner也在端口9000上运行.要解决此问题,您可以重新配置通过更改如下内容,也可以在/etc/cloudera-scm-agent/config.ini中更改端口:

Check if any thing is running on 9000 or 90001, mostly java services required for set up is running on port 9000, and cloudera-scm-agent listner also runs on port 9000. to over come this issue you can re-configure theports as well in /etc/cloudera-scm-agent/config.ini by changing as below:

--------------------------------------------------
## It should not normally be necessary to modify these.
# Port that the CM agent should listen on.
listening_port=9001
-------------------------------------------------

,然后通过以下命令重新启动cloudera-scm-agent服务: service cloudera-scm-agent重新启动

and then restart the cloudera-scm-agent service by command: service cloudera-scm-agent restart

要确认未为其他sshd服务激活此端口,请检查在/etc/ssh/sshd_config中打开的端口.

To verify this port is not activated for other sshd service check Ports opened in /etc/ssh/sshd_config.

我希望该决议也对其他人有用.

I hope this resolution will work for others too.

干杯,安吉·古普塔(Ankit Gupta)

Cheers, Ankit Gupta

这篇关于为什么我收到此错误“安装失败.无法从代理接收心跳."在cloudera安装中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆