【问题标题】:Running cqlsh in fips mode在 fips 模式下运行 cqlsh
【发布时间】:2018-02-06 04:51:34
【问题描述】:

有没有人幸运地在 fips 模式下运行 cqlsh?我们正试图让它工作并得到以下错误。

--

[root@pb03 ~]# /opt/cassandra/bin/cqlsh 10.50.50.103
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/lib/python2.7/hashlib.py", line 109, in __get_openssl_constructor
    return __get_builtin_constructor(name)
  File "/usr/local/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
Traceback (most recent call last):
  File "/opt/apache-cassandra-2.2.9/bin/cqlsh.py", line 148, in <module>
    from cassandra.cluster import Cluster
  File "/opt/apache-cassandra-2.2.9/bin/../lib/cassandra-driver-internal-only-3.5.0.post0-d8d0456.zip/cassandra-driver-3.5.0.post0-d8d0456/cassandra/cluster.py", line 62, in <module>
  File "/opt/apache-cassandra-2.2.9/bin/../lib/cassandra-driver-internal-only-3.5.0.post0-d8d0456.zip/cassandra-driver-3.5.0.post0-d8d0456/cassandra/metadata.py", line 18, in <module>
ImportError: cannot import name md5
[root@pb03 ~]# 
[root@pb03 ~]# python -V
Python 2.7.10
[root@pb03 ~]# 

--

感谢任何帮助。

【问题讨论】:

    标签: cassandra cqlsh


    【解决方案1】:

    使用 _md5 重建和安装 python 为我们解决了这个问题。

    【讨论】:

      猜你喜欢
      • 2023-04-03
      • 1970-01-01
      • 2020-10-19
      • 1970-01-01
      • 2016-04-11
      • 2018-02-10
      • 2019-02-18
      • 2020-08-20
      • 2021-09-13
      相关资源
      最近更新 更多