我是第一次安装cloudera集群。
在Cluster Installing页面上,显示以下消息:
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 free 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).
然后在日志文件中,我找到了:
[21/Oct/2014 05:29:54 +0000] 9155 MainThread agent ERROR Failed to connect to previous supervisor.
.....
SystemExit: 2
在/var/log/cloudera-scm-agent/cloudera-scm-agent.out文件中,我发现:
[21/Oct/2014 11:29:15 +0000] 1658 MainThread agent INFO Logging to /var/log/cloudera-scm-agent/cloudera-scm-agent.log
Error: could not find config file /var/run/cloudera-scm-agent/supervisor/supervisord.conf
For help, use /usr/lib64/cmf/agent/src/cmf/agent.py -h
....
Session terminated, killing shell... ...killed.
我跑: /usr/lib64/cmf/agent/src/cmf/agent.py -h
系统告诉我:
/usr/lib64/cmf/agent/src/cmf/agent.py:24: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha
Traceback (most recent call last):
File "/usr/lib64/cmf/agent/src/cmf/agent.py", line 40, in <module>
import cmf.alternatives
ImportError: No module named cmf.alternatives
我的ENV是: centos 6.5,Python 2.6.6,Cloudera管理服务器是5.2
所以,我想知道将安装哪些模块/模块来修复此错误。
或如何配置在安装中使用cmf模块?
在哪里可以找到描述cloudera的python的文档? 非常感谢。
答案 0 :(得分:1)
您好,您只需按照说明操作,将sha
替换为hashlib
,然后重试。
...
# import sha
import hashlib
# and use hashlib.sha1 instead of sha.sha in the following code
hashlib.sha1(...)
...