为什么会发生这种情况?请帮我解决问题。
提前致谢。
我曾经遇到过DataStax 3.9的同样问题,以下是解决方法:
步骤1:打开文件:DataStax-DDC\apache-cassandra\conf\cassandra.yaml
步骤2:取消注释cdc_raw_directory并将其设置为新值(对于Windows)
cdc_raw_directory: "C:/Program Files/DataStax-DDC/data/cdc_raw"
步骤3:转至Windows服务并启动DataStax DDC Server 3.9.0服务。
我曾经与DataStax Community 3.0.9遇到了相同的问题
步骤1: 前往C:\Program Files\DataStax Community\apache-cassandra\conf
并在记事本或wordpad中打开cassandra.yaml
步骤2: 确保文件中有以下条目。如果没有,请添加并保存文件。
hints_directory: "C:/Program Files/DataStax Community/data/hints"
data_file_directories: - "C:/Program Files/DataStax Community/data/data"
commitlog_directory: "C:/Program Files/DataStax Community/data/commitlog"
cdc_raw_directory: "C:/Program Files/DataStax Community/data/cdc_raw"
saved_caches_directory: "C:/Program Files/DataStax Community/data/saved_caches"
步��3: 前往C:\Program Files\DataStax Community\data
并确保你有以下文件夹:
commitlog , data , hints, saved_caches, cdc_raw
如果缺少cdc_raw文件夹,请创建一个名为cdc_raw的文件夹
完成后,再次运行Cassandra CQL shell。这应该可以解决问题。
前往 C:\Program Files\DataStax Community\apache-cassandra\logs\debug.log
找到错误。
就像我遇到的问题一样,我检查了日志,发现了一个错误。
ERROR [main] 2018-01-16 14:54:49,359 JVMStabilityInspector.java:82 - Exiting due to error while processing commit log during initialization.
org.apache.cassandra.db.commitlog.CommitLogReplayer$CommitLogReplayException: Could not read commit log descriptor in file C:\Program Files\DataStax Community\data\commitlog\CommitLog-6-1516029298188.log
"C:\Program Files\DataStax Community\apache-cassandra\bin\cassandra.bat"
以上方法对我都没用,但以下方法适用于64位v3.0.9的社区版:
如果你在安装时没有选中“自动启动DataStax Cassandra Community服务”,你需要重新安装并勾选它。
进入 C:\Program Files\DataStax Community
并将文件cassandra.ymal.orig重命名为cassandra.yaml,保存在DataStax Community
文件夹内,然后启动Cassandra CQL Shell。
注意:我不知道这是否必要,但在进行此操作之前我备份了cassandra.ymal.orig文件。
此外,如果有人能解释一下在Windows中启动Cassandra的命令是什么,那就太好了。似乎至少部分原因是服务无法启动。