Cassandra 卡桑德拉和Cqlsh

Cassandra 卡桑德拉和Cqlsh,cassandra,cqlsh,Cassandra,Cqlsh,在尝试运行cqlsh时,我得到了以下错误 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 ]

在尝试运行cqlsh时,我得到了以下错误

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.
我个人不知道为什么? 我尝试了所有的资源,但都不起作用
任何人都可以帮我解决问题。问题是你很可能使用了不受支持的Java。您至少需要切换到Java8 u151,但最好是最新版本


此外,使用
services
确定Cassandra是否正在运行并不是一种可靠的检查方法。您应该改为运行
nodetool status
。干杯

这似乎是一个配置问题,而不是编程(cql)问题,因为您没有运行Cassandra服务器。事实上,我想我确实让它运行了IssaMacBook:bin issaouedraogo$brew services start Cassandra Service
Cassandra
已经启动,使用
brew services restart cassandra
重新启动。因此服务说它正在运行,但当JVM创建失败时,cassandra无法运行。呼叫正确!
ThreadPriorityPolicy
显然是JDK对Cassandra来说“太新”的症状。这对我来说是完美的,我降级到Java 8并能够运行Cassandra。谢谢你的意见。
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")})