Cassandra中的CQL登录错误
我可以毫无问题地启动Cassandra 3,但是Cassandra中的CQL登录错误,cassandra,cql,Cassandra,Cql,我可以毫无问题地启动Cassandra 3,但是cqlsh脚本没有启动。我使用的是CentOS 6,安装的Python是2.7。以下是错误消息: [hadoop@hadoop1 bin]$ cqlsh Traceback (most recent call last): File "/opt/cassandra/bin/cqlsh.py", line 168, in <module> from cqlshlib import cql3handling, cqlhandli
cqlsh
脚本没有启动。我使用的是CentOS 6,安装的Python是2.7。以下是错误消息:
[hadoop@hadoop1 bin]$ cqlsh
Traceback (most recent call last):
File "/opt/cassandra/bin/cqlsh.py", line 168, in <module>
from cqlshlib import cql3handling, cqlhandling, pylexotron, sslhandling, cqlshhandling
File "/opt/cassandra/bin/../pylib/cqlshlib/sslhandling.py", line 20, in <module>
import ssl
File "/usr/local/lib/python2.7/ssl.py", line 60, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: No module named _ssl
[hadoop@hadoop1bin]$cqlsh
回溯(最近一次呼叫最后一次):
文件“/opt/cassandra/bin/cqlsh.py”,第168行,在
从cqlshlib导入cql3handling、CQLHHandling、pylexotron、SSLHHandling、cqlshhandling
文件“/opt/cassandra/bin/。/pylib/cqlshlib/sslhandling.py”,第20行,在
导入ssl
文件“/usr/local/lib/python2.7/ssl.py”,第60行,在
导入_ssl#如果我们无法导入它,让错误传播
ImportError:没有名为_ssl的模块
请帮忙
问候
Sajith您收到的错误与缺少python包有关。 检查以下已解决的问题以解决您的CQL错误: