我在OSX上安装的Cassandra似乎在昨天的发布中被破坏了。卡桑德拉开始似乎还不错。在
Jeremys-MacBook-Pro: fractal jeremy$ cqlsh --version
cqlsh 5.0.1
Jeremys-MacBook-Pro:fractal jeremy$ cqlsh localhost
Traceback (most recent call last):
File "/usr/local/Cellar/cassandra/3.11.2/libexec/bin/cqlsh.py", line 2443, in <module>
main(*read_options(sys.argv[1:], os.environ))
File "/usr/local/Cellar/cassandra/3.11.2/libexec/bin/cqlsh.py", line 2421, in main
encoding=options.encoding)
File "/usr/local/Cellar/cassandra/3.11.2/libexec/bin/cqlsh.py", line 488, in __init__
**kwargs)
File "cassandra/cluster.py", line 735, in cassandra.cluster.Cluster.__init__ (cassandra/cluster.c:10935)
TypeError: __init__() got an unexpected keyword argument 'no_compact'
我刚刚在文件
/usr/local/Cellar/cassandra/3.11.2/libexec/bin/cqlsh.py
中注释了488
:#no_compact=no_compact,
,它又起作用了。我也有这个问题。我目前的解决方法是安装cqlsh via pip,然后通过一个docker容器运行Cassandra(在我们的例子中是scyllab)。
您可以提交问题here。
csqlsh在Cassandra的3.11.2版本中没有被破坏。然而,3.11.2版本的自制公式最初是被打破的,每Homebrew issue 24977。根据这个问题和CASSANDRA-14301,自制程序被配置为使用错误版本的Cassandra驱动程序,该驱动程序使用了不兼容的Python版本。
这个问题已经在自制程序中得到了修复,因此新安装的3.11.2应该不会出现此问题。
相关问题 更多 >
编程相关推荐