无法通过Cloudera Manager添加新主机

时间:2015-11-30 14:31:58

标签: cloudera cloudera-manager

我们在 2 的节点上运行 RedHat 6.4 。 我们已经安装了新的 Cloudera Manager 5.5.0 ,我们一直在尝试创建群集并向其添加第一个节点(节点最初是干净的Cloudera组件)。不幸的是,在群集安装期间,Cloudera Manager每次都会卡在:

Installation failed. Failed to receive heartbeat from agent.
Ensure that the host's hostname is configured properly.
Ensure that port 7182 is accessible on the Cloudera Manager Server (check firewall rules).
Ensure that ports 9000 and 9001 are not in use on the host being added.
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).
If Use TLS Encryption for Agents is enabled in Cloudera Manager (Administration -> Settings -> Security), ensure that /etc/cloudera-scm-agent/config.ini has use_tls=1 on the host being added. Restart the corresponding agent and click the Retry link here.

我们环顾四周,看到这通常是由错误配置的 / etc / hosts 文件引起的。所以我们在Cloudera Manager和新节点上编辑了我们的服务,执行了服务网络重启以及服务cloudera-scm-server restart 但是它没有工作无论是。 这是 / etc / hosts 文件的样子:

127.0.0.1 localhost
10.186.80.86 domain.node2.fr.net host
10.186.80.105 domain.node1.fr.net mgrnode

我们还尝试通过删除 scm_prepare_node。* .scm_prepare_node.lock 来重新启动群集之前进行一些清理。

我们在每个安装失败后在新节点上查看服务cloudera-scm-agent状态,我们注意到该服务没有运行(即使我们提供服务)重启,结果仍然相同)

service cloudera-scm-agent start 
Starting cloudera-scm-agent: [ OK ] 
service cloudera-scm-agent status 
cloudera-scm-agent dead but pid file exists

此处代理在新节点端登录:

tail -f /var/log/cloudera-scm-agent/cloudera-scm-agent.log 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Agent Logging Level: INFO 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO No command line vars 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Missing database jar: /usr/share/java/mysql-connector-java.jar (normal, if you're not using this database type) 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Missing database jar: /usr/share/java/oracle-connector-java.jar (normal, if you're not using this database type) 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Found database jar: /usr/share/cmf/lib/postgresql-9.0-801.jdbc4.jar 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Agent starting as pid 24529 user cloudera-scm(420) group cloudera-scm(207). 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Because agent not running as root, all processes will run with current user. 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent WARNING Expected mode 0751 for /var/run/cloudera-scm-agent but was 0755 
[30/Nov/2015 15:07:27 +0000] 24529 MainThread agent INFO Re-using pre-existing directory: /var/run/cloudera-scm-agent 
[30/Nov/2015 15:07:29 +0000] 24529 MainThread agent INFO Re-using pre-existing directory: /var/run/cloudera-scm-agent/cgroups

我们有什么问题吗? 在此先感谢您的帮助!

1 个答案:

答案 0 :(得分:1)

这次我们刚刚用root用户创建了集群(没有检查单用户模式)

此外,我们的主机没有互联网访问权限,并且创建了我们自己的存储库,我们需要在启动集群创建之前执行最后一步,该集群创建使用此命令在主机上导入GPG密钥:

sudo rpm --import

如果有人发现自己面临同样的问题,希望这会有所帮助!