安装cloudera管理代理时,没有名为cmf.备选方案发生错误

2024-05-23 15:59:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我是第一次安装cloudera集群。在

在群集安装页面上,显示以下消息:

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).

然后在日志文件中,我发现:

^{pr2}$

在/var/log/cloudera scm agent/cloudera scm中-探员。出去文件,我发现:

[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/代理.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

我的环境是:centos 6.5,Python 2.6.6,Cloudera manage server是5.2

所以,我想知道要安装哪个模块来修复这个错误。在

或者如何在安装中配置使用cmf模块?在

我在哪里可以找到一个描述cloudera的python的文档?
非常感谢。在


Tags: thepysrcloghostthatvarusr
1条回答
网友
1楼 · 发布于 2024-05-23 15:59:08

嗨,您只需按照说明操作,将sha替换为hashlib,然后再试一次。在

...
# import sha
import hashlib

# and use hashlib.sha1 instead of sha.sha in the following code
hashlib.sha1(...)
...

相关问题 更多 >