在检查 cassandra 的 nodetool 状态时,我们得到空的主机 ID。如何解决HOST ID为空的问题?
我正在尝试为 TWCloud 安装 cassandra (https://docs.nomagic.com/display/TWCloud2022x/Installing+Apache+Cassandra)
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
-- Address Load Tokens Owns **Host ID** Rack
UN 10.40.226.137 277.93 MiB 256 ? rack1
我预见到 Linux 控制台中会出现 Cassandra 会话异常。卡桑德拉错误:
2024-02-14 17:40:37,250 [main] ERROR com.nomagic.authentication.server.config.CassandraConfig - \
Error creating bean with name 'cassandraSessionFactory' defined in class path resource \
[com/nomagic/authentication/server/config/CassandraConfig.class]: \
Unsatisfied dependency expressed through method 'cassandraSessionFactory' parameter 0; \
nested exception is org.springframework.beans.factory.BeanCreationException: \
Error creating bean with name 'cassandraSession' defined in class path resource \
[com/nomagic/authentication/server/config/CassandraConfig.class]: \
Invocation of init method failed; nested exception is \
com.datastax.oss.driver.api.core.AllNodesFailedException: \
Could not reach any contact point, make sure you've provided valid addresses
Web 应用程序平台错误:
2024-02-14 20:23:26,422 [https-jsse-nio-8443-exec-6] ERROR com.nomagic.webappplatform.authentication.internal.authserver.AuthServerAuthenticationService - authorize
com.nomagic.authentication.client.exceptions.AuthenticationException: \
Unexpected character ('<' (code 60)): expected a valid value (JSON String, \
Number, Array, Object or token 'null', 'true' or 'false')
有关错误的信息,请查看随附的错误屏幕截图
Cassandra - 4.0.3
我尝试通过更改主机名(127.0.0.1)来修改cassandra-env.sh文件。
我期望运行具有主机 ID 的 cassandra。
主机 ID 存储在
system.local
表中,该表仅包含 1 行(其中分区键为 local
),因此节点无法检索该信息表明您遇到了某种竞争条件。
诚然,这不是我在使用 Cassandra 的 10 多年中遇到过的事情,所以这是一个有趣的案例。
如果您能够复制它,我们将非常感兴趣,如果您可以记录一张票,其中包含 (1) 您的环境详细信息(例如操作系统平台 + 版本、JVM 供应商 + 版本等),以及 (2) 详细信息复制问题的步骤,以便我们进行调查。干杯!