Cassandra and Cqlsh

问题描述 投票:0回答:1
issaouedraogo$ cassandra -f  
[0.002s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:/usr/local/Cellar/cassandra/3.11.6_2/libexec/logs/gc.log instead.
intx ThreadPriorityPolicy=42 is outside the allowed range [ 0 ... 1 ]
Improperly specified VM option 'ThreadPriorityPolicy=42'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

aslo尝试运行cqlsh时出现以下错误

Connection error: ('Unable to connect to any servers', {'127.0.0.1': error(61, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection refused")})

我个人不知道为什么?我尝试了所有资源,但没有用任何人都可以帮助我]

cassandra cqlsh
1个回答
0
投票

问题是您很可能使用了不受支持的Java。您至少需要切换到Java 8 u151,但最好使用最新版本。

[此外,使用services确定Cassandra是否正在运行也不是可靠的检查方法。您应该运行nodetool status。干杯!

© www.soinside.com 2019 - 2024. All rights reserved.