gpt4 book ai didi

java - 几秒钟后 cassandra.service 退出,nodetool 给出 'Connection refused' 错误

转载 作者:行者123 更新时间:2023-11-29 04:20:51 30 4
gpt4 key购买 nike

我在 digitalocean 上有一个 4GB 内存的 ubuntu 服务器我正在使用 Cassandra 3.9

经过详细的设置过程here

cqlsh、nodetool status 都返回这条信息:

nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException: 'Connection refused (Connection refused)'.

我读过几个类似的问题,他们都建议 4GB 最小 ram 大小,我有,但仍然得到同样的错误 >> Nodetool status connection refused

有人建议在cassandra.yaml中设置listen_address和rpc_address为digitalocean分配的ip,也试过了,但是问题依旧

有些人建议查看调试日志和系统日志,很多 [INFO] 和 [DEBUG] 行,但我有一些 [WARN] 行,它们不会终止执行,而是在 [ERROR] 行处终止

警告

...WARN  [main] 2018-03-13 12:06:52,359 DatabaseDescriptor.java:563 - Small commitlog volume detected at /var/lib/cassandra/commitlog; setting commitlog_total_space_in_mb to 6158.  You can override this in cassandra.yamlWARN  [main] 2018-03-13 12:06:52,361 DatabaseDescriptor.java:590 - Small cdc volume detected at /var/lib/cassandra/cdc_raw; setting cdc_total_space_in_mb to 3079. You can override this in cassandra.yamlWARN  [main] 2018-03-13 12:06:52,365 DatabaseDescriptor.java:643 - Only 22.102GiB free across all data volumes. Consider adding more capacity to your cluster or removing obsolete snapshots...WARN  [main] 2018-03-13 12:06:52,530 StartupChecks.java:123 - jemalloc shared library could not be preloaded to speed up memory allocationsWARN  [main] 2018-03-13 12:06:52,530 StartupChecks.java:156 - JMX is not enabled to receive remote connections. Please see cassandra-env.sh for more info.INFO  [main] 2018-03-13 12:06:52,533 SigarLibrary.java:44 - Initializing SIGAR libraryWARN  [main] 2018-03-13 12:06:52,554 SigarLibrary.java:174 - Cassandra server running in degraded mode. Is swap disabled? : true,  Address space adequate? : true,  nofile limit adequate? : true, nproc limit adequate? : false

错误

...ERROR [main] 2018-03-13 12:06:55,808 CassandraDaemon.java:747 - Exception encountered during startupjava.lang.AbstractMethodError: org.apache.cassandra.utils.JMXServerUtils$Exporter.exportObject(Ljava/rmi/Remote;ILjava/rmi/server/RMIClientSocketFactory;Ljava/rmi/ser$        at javax.management.remote.rmi.RMIJRMPServerImpl.export(RMIJRMPServerImpl.java:150) ~[na:1.8.0_161]        at javax.management.remote.rmi.RMIJRMPServerImpl.export(RMIJRMPServerImpl.java:135) ~[na:1.8.0_161]        at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:405) ~[na:1.8.0_161]        at org.apache.cassandra.utils.JMXServerUtils.createJMXServer(JMXServerUtils.java:106) ~[apache-cassandra-3.9.jar:3.9]        at org.apache.cassandra.service.CassandraDaemon.maybeInitJmx(CassandraDaemon.java:145) [apache-cassandra-3.9.jar:3.9]        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:219) [apache-cassandra-3.9.jar:3.9]        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:601) [apache-cassandra-3.9.jar:3.9]        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:730) [apache-cassandra-3.9.jar:3.9]

不确定如何处理该错误消息

我怀疑你们中的许多人都遇到过这个问题,并且你们中的一些人解决了它请为我们其他人(以及 future 的人)清楚地详细说明您是如何排序的

我正在考虑尝试使用早期版本的 cassandra,也许这个问题是 3.9 版本特有的,而不是早期版本

最佳答案

这是一个已知问题 ( CASSANDRA-14173 )。要么将 Java 降级到 Java 8 build 152,要么升级 Cassandra。

关于java - 几秒钟后 cassandra.service 退出,nodetool 给出 'Connection refused' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49257735/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com