[英]how to fix “nodetool: Failed to connect to 'localhost:7199' - ConnectException: 'Connection refused (Connection refused)'.”
我安裝了 Cassandra 並且它之前工作正常,但是一旦我將 java 1.8 更新到 java 16,即使我運行,我也會收到此錯誤
systemctl status cassandra
它說找不到 Unit cassandra.service
這是 cassandra 的日志
2021-07-29 04:20:18 INFO PropertiesUtil:65 - loadProperties - file does not exist, skipping ... /opt/apigee/customer//pod/default.properties
2021-07-29 04:20:18 INFO PropertiesUtil:65 - loadProperties - file does not exist, skipping ... /opt/apigee/customer//pod/default.properties
2021-07-29 04:20:18 INFO PropertiesUtil:65 - loadProperties - file does not exist, skipping ... /opt/apigee/customer//org/default.properties
2021-07-29 04:20:18 INFO PropertiesUtil:65 - loadProperties - file does not exist, skipping ... /opt/apigee/customer//org/default.properties
2021-07-29 04:20:18 INFO PropertiesUtil:65 - loadProperties - file does not exist, skipping ... /opt/apigee/customer//host/default.properties
2021-07-29 04:20:18 INFO PropertiesUtil:65 - loadProperties - file does not exist, skipping ... /opt/apigee/customer//host/node-2.properties
2021-07-29 04:20:18 INFO Tokenizer:104 - Tokenization Done
2021-07-29 04:20:18 INFO ZipCompare:59 - Comparing /opt/apigee/data/apigee-cassandra/config_backup_20210729_042017.zip with /opt/apigee/data/apigee-cassandra/newconfig_backup_20210729_042018.zip:
2021-07-29 04:20:18 INFO ZipCompare:111 - 19 entries matched
2021-07-29 04:20:18 INFO ConfigUtil:74 - Removing old backup files as there is no change /opt/apigee/data/apigee-cassandra/config_backup_20210729_042017.zip
如果我運行nodetool status
它會顯示nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException: 'Connection refused (Connection refused)'.
如果我使用 ```apigee-all restart`` 重新啟動服務
感謝您的任何指導或幫助
Cassandra 不適用於 Java 16。
Cassandra 4.0 之前的版本僅支持 Java 8。Cassandra 4.0 支持標記為“實驗性”的 Java 8 + Java 11(盡管有關於采用完全支持的積極討論)。 干杯!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.