2015-11-30 43 views
0

我们正在运行RedHat 6.4 on 我们的节点。 我们已经安装了新的Cloudera Manager 5.5.0并且我们一直在尝试创建一个集群并向其中添加第一个节点(节点最初是清理任何Cloudera组件的)。不幸的是,在集群安装过程中,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-代理状态在新节点上后各安装失败,以及,我们注意到该服务没有运行(甚至当我们重新启动服务时,结果仍然是相同)

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

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

此外,我们的主机没有网络连接,并具有创造了我们自己的仓库,我们需要做的最后一步启动群集创建它使用此命令导入主机上的GPG键之前:

须藤转--import

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

相关问题