相关疑难解决方法(0)

cqlsh连接错误:'ref()不接受关键字参数'

我已经尝试过这篇文章Cassandra doc的所有措施.

我已经尝试运行所有版本的Cassandra,包括来自tarball和Debian软件包的最新版本3.7,但是当我执行时我一直遇到错误cqlsh.

错误:

连接错误:('无法连接到任何服务器',{'127.0.0.1':TypeError('ref()不接受关键字参数',)})

在将Linux Mint从17.3升级到18之前,我没有遇到运行Cassandra的问题.

我相信我安装了所有必要的软件包,如java 8和python 2.7.12.

我认为cassandra.yaml文件中存在问题,因为默认设置不起作用,但我不确定如何正确配置以使其运行.

任何建议赞赏.

python linux cassandra cqlsh

25
推荐指数
3
解决办法
2万
查看次数

Cassandra cqlsh无法连接到任何服务器 - 127.0.0.1:9160(已关闭)>已关闭

我在OSX上安装了Cassandra.尝试从/ bin /运行cqlsh时,出现以下错误:

> Connection error: ('Unable to connect to any servers', {'127.0.0.1':
> ConnectionShutdown('Connection <AsyncoreConnection(4522252560)
> 127.0.0.1:9160 (closed)> is already closed',)})
Run Code Online (Sandbox Code Playgroud)

我在安装Cassandra时遇到了困难,并且使用了brew install cassandra,从datastax安装了DSE,并从Apache下载了二进制文件.

cassandra cqlsh

19
推荐指数
5
解决办法
7万
查看次数

Cassandra死了但是pid文件存在

我对cassandra有新手,并尝试在centos 7.0上安装cassandra-2.1.2.完成安装后,执行cqlsh命令并创建几个密钥空间和列族.在我看来,它看起来很完美.

但后来我意识到以下问题:

1-当我执行"service cassandra status"命令时,我得到以下错误:

输出:Cassandra死了,但是pid文件存在.

我搜索了上述问题并找到了一些链接

http://www.datastax.com/support-forums/topic/dse-dead-but-pid-file-exists

https://baioradba.wordpress.com/2014/06/13/how-to-install-cassandra-on-centos-6-5/

并发现我在上面的链接中提到了相同的配置,但同样的错误仍然存​​在.

请告诉我根本原因以及解决方法.

2-第二个问题在cassandra.log文件中.

当我分析cassandra.log文件时,有一个预期:

Expecting URI in variable: [cassandra.config]. Please prefix the file with file:/// for local files or file://<server>/ for remote files. Aborting.

以下是完整的日志:

12:01:40.816 [main] ERROR o.a.c.config.DatabaseDescriptor - Fatal configuration error
org.apache.cassandra.exceptions.ConfigurationException: Expecting URI in variable: [cassandra.config].  Please prefix the file with file:/// for local files or file://<server>/ for remote files.  Aborting.
    at org.apache.cassandra.config.YamlConfigurationLoader.getStorageConfigURL(YamlConfigurationLoader.java:73) ~[apache-cassandra-2.1.3.jar:2.1.3]
    at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:84) ~[apache-cassandra-2.1.3.jar:2.1.3]
    at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:158) ~[apache-cassandra-2.1.3.jar:2.1.3]
    at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:133) ~[apache-cassandra-2.1.3.jar:2.1.3]
    at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:110) [apache-cassandra-2.1.3.jar:2.1.3]
    at …
Run Code Online (Sandbox Code Playgroud)

cassandra

8
推荐指数
1
解决办法
6604
查看次数

标签 统计

cassandra ×3

cqlsh ×2

linux ×1

python ×1