分享

cloudera manager 启动agent服务失败

find5 发表于 2016-12-7 16:24:26 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 14445
redhat 6.2安装cloudera manager 版本cloudera-manager-sles11-cm5.5.0_x86_64.tar.gz,server服务可以启动,agent启动失败
Traceback (most recent call last):
  File "/opt/cm-5.5.0/lib64/cmf/agent/src/cmf/agent.py", line 47, in <module>
    import cmf.audit.util
  File "/opt/cm-5.5.0/lib64/cmf/agent/src/cmf/audit/__init__.py", line 10, in <module>
    from cmf.audit.navigator_thread import AuditThread, MetadataThread
  File "/opt/cm-5.5.0/lib64/cmf/agent/src/cmf/audit/navigator_thread.py", line 9, in <module>
    from cmf.audit.navigator_sender import Result
  File "/opt/cm-5.5.0/lib64/cmf/agent/src/cmf/audit/navigator_sender.py", line 12, in <module>
    from cmf.url_util import urlopen_with_timeout
  File "/opt/cm-5.5.0/lib64/cmf/agent/src/cmf/url_util.py", line 11, in <module>
    from M2Crypto import httpslib
  File "/opt/cm-5.5.0/lib64/cmf/agent/build/env/lib/python2.6/site-packages/M2Crypto-0.21.1-py2.6-linux-x86_64.egg/M2Crypto/__init__.py", line 22, in <module>
    import __m2crypto
ImportError: /opt/cm-5.5.0/lib64/cmf/agent/build/env/lib/python2.6/site-packages/M2Crypto-0.21.1-py2.6-linux-x86_64.egg/M2Crypto/__m2crypto.so: undefined symbol: PEM_read_bio_ECPrivateKey

不知什么原因,求指点。。。。。。。。。

已有(4)人评论

跳转到指定楼层
easthome001 发表于 2016-12-7 17:26:18
Python M2Crypto库应该安装失败了。直接补上这个库或则尝试下面操作试试


安装python依赖文件
pip install docopt pygments

然后再执行
sudo python setup.py install


回复

使用道具 举报

find5 发表于 2016-12-8 09:10:20
本帖最后由 find5 于 2016-12-8 09:39 编辑
easthome001 发表于 2016-12-7 17:26
Python M2Crypto库应该安装失败了。直接补上这个库或则尝试下面操作试试
试了提供的方法重新编译了下,还是同样的错。

Traceback (most recent call last):
  File "/opt/cm-5.5.0/lib64/cmf/agent/src/cmf/agent.py", line 47, in <module>
    import cmf.audit.util
  File "/opt/cm-5.5.0/lib64/cmf/agent/src/cmf/audit/__init__.py", line 10, in <module>
    from cmf.audit.navigator_thread import AuditThread, MetadataThread
  File "/opt/cm-5.5.0/lib64/cmf/agent/src/cmf/audit/navigator_thread.py", line 9, in <module>
    from cmf.audit.navigator_sender import Result
  File "/opt/cm-5.5.0/lib64/cmf/agent/src/cmf/audit/navigator_sender.py", line 12, in <module>
    from cmf.url_util import urlopen_with_timeout
  File "/opt/cm-5.5.0/lib64/cmf/agent/src/cmf/url_util.py", line 11, in <module>
    from M2Crypto import httpslib
  File "/opt/cm-5.5.0/lib64/cmf/agent/build/env/lib/python2.6/site-packages/M2Crypto-0.21.1-py2.6-linux-x86_64.egg/M2Crypto/__init__.py", line 22, in <module>
    import __m2crypto
ImportError: libssl.so.0.9.8: cannot open shared object file: No such file or directory

这个错是什么原因,这两个错误有联系吗?
之前还报ImportError: libssl.so.0.9.8: cannot open shared object file: No such file or directory ,我的OpenSSL是1.0

点评

应该是缺这个 libssl.so.0.9.8,楼主可以在找找  发表于 2016-12-8 09:48
回复

使用道具 举报

find5 发表于 2016-12-8 13:41:52
import __m2crypto
ImportError: /opt/cm-5.5.0/lib64/cmf/agent/build/env/lib/python2.6/site-packages/M2Crypto-0.21.1-py2.6-linux-x86_64.egg/M2Crypto/__m2crypto.so: undefined symbol: PEM_read_bio_ECPrivateKey

装了M2Crypto库后还是报同样错,
步骤如下:
下载M2Crypto-0.21.1包,进入M2Crypto-0.21.1下,
Python setup.py build
python setup.py install  
求指点
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条