无法操作cassandra-debian 10(buster)

ioekq8ef  于 2021-06-10  发布在  Cassandra
关注(0)|答案(0)|浏览(296)

我已经试着在debian buster上安装cassandra好几个小时了。有很多很多事情我不明白。事实上,没有什么是有效的。在任性的java和随心所欲的cassandra之间,我迷失了方向。
例如,以下命令对cassandra没有任何影响(但它们在这里给出:http://cassandra.apache.org/download/):

sudo service cassandra start
sudo service cassandra start
systemctl stop cassandra
systemctl start cassandra
systemctl restart cassandra
systemctl reload cassandra

没有“kill”命令无法停止:

kill $(ps aux | grep 'cassandra' | awk '{print $2}')

因此,我不知道如何更改配置,即使在重启机器之后,conf也没有应用,cassandra崩溃了。
我想在prod中使用cassandra,但我不太确定?
我的java:

$ java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.242-b08, mixed mode)

错误将以“cassandra-f”开头:

ERROR [main] 2020-03-18 09:54:20,613 CassandraDaemon.java:774 - Fatal exception during initialization
org.apache.cassandra.exceptions.ConfigurationException: Saved cluster name Test Cluster != configured name kban
    at org.apache.cassandra.db.SystemKeyspace.checkHealth(SystemKeyspace.java:1002) ~[apache-cassandra-3.11.6.jar:3.11.6]
    at org.apache.cassandra.service.StartupChecks$10.execute(StartupChecks.java:422) ~[apache-cassandra-3.11.6.jar:3.11.6]
    at org.apache.cassandra.service.StartupChecks.verify(StartupChecks.java:125) ~[apache-cassandra-3.11.6.jar:3.11.6]
    at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:207) [apache-cassandra-3.11.6.jar:3.11.6]
    at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:630) [apache-cassandra-3.11.6.jar:3.11.6]
    at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:757) [apache-cassandra-3.11.6.jar:3.11.6]

修复方式:rm-rf/var/lib/cassandra//var/log/cassandra/
但2分钟后:

Exception (java.lang.RuntimeException) encountered during startup: Unable to gossip with any peers
java.lang.RuntimeException: Unable to gossip with any peers
    at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1530)
    at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:586)
    at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:844)
    at org.apache.cassandra.service.StorageService.initServer(StorageService.java:703)
    at org.apache.cassandra.service.StorageService.initServer(StorageService.java:652)
    at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:397)
    at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:630)
    at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:757)
ERROR [main] 2020-03-18 10:00:23,014 CassandraDaemon.java:774 - Exception encountered during startup
java.lang.RuntimeException: Unable to gossip with any peers
    at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1530) ~[apache-cassandra-3.11.6.jar:3.11.6]
    at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:586) ~[apache-cassandra-3.11.6.jar:3.11.6]
    at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:844) ~[apache-cassandra-3.11.6.jar:3.11.6]
    at org.apache.cassandra.service.StorageService.initServer(StorageService.java:703) ~[apache-cassandra-3.11.6.jar:3.11.6]
    at org.apache.cassandra.service.StorageService.initServer(StorageService.java:652) ~[apache-cassandra-3.11.6.jar:3.11.6]
    at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:397) [apache-cassandra-3.11.6.jar:3.11.6]
    at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:630) [apache-cassandra-3.11.6.jar:3.11.6]
    at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:757) [apache-cassandra-3.11.6.jar:3.11.6]

同龄人倒了,但不是停止服务的理由吗?如果?
java=????⚰️

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题