Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cassandra中的CQL登录错误_Cassandra_Cql - Fatal编程技术网

Cassandra中的CQL登录错误

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

我可以毫无问题地启动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, 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错误: