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.
在尝试运行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")})
我个人不知道为什么?我尝试了所有的资源,但是没有人能帮我
1条答案
按热度按时间zsbz8rwp1#
问题是您很可能使用的是不受支持的java。您需要切换到Java8至少u151,但最好是最新的。
另外,使用
services
确定Cassandra是否在运行不是一个可靠的检查方法。你应该跑nodetool status
. 干杯!