安装Cassandra CQL Shell后,窗口在Windows中消失了

12
在Windows安装Cassandra CQL Shell窗口后,窗口会消失?这是使用Planet Cassandra中提供的MSI安装程序安装的。
为什么会发生这种情况?请帮我解决问题。
提前致谢。

你正在安装哪个版本的C*?你使用的是哪个Windows系统?你是在升级Cassandra的版本吗?如果是这样,你尝试过卸载并重新安装吗? - Carlos Monroy Nieblas
1
我正在使用datastax-community-32bit_3.0.9.msi文件安装Cassandra。我已经使用卸载程序和重新安装进行了卸载和修复。但是,我仍然面临cqlsh shell打开并立即关闭的相同问题。请帮助我。提前致谢。 - Srinathji Kyadari
1
请问您能否前往Cassandra主目录(很可能在C:\Program Files\dataStax-DDC)并进入日志文件夹。请分享日志文件夹中显示的内容。 - JavaTec
4个回答

35

我曾经遇到过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服务。


谢谢,运行良好。 - Sarat Chandra
系统重启后对我有效。 - Yashwanth Kata
1
在DataStax-DDC\apache-cassandra\conf\cassandra.yaml文件中,我没有在data文件夹和yaml文件中找到cdc_raw_directory。你能告诉我如何添加cdc_raw文件吗? - Bandana Sahu

6

我曾经与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。这应该可以解决问题。


2

前往 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"

一旦您的服务器开机运行,现在您就可以打开Cassandra CQL Shell。

0

以上方法对我都没用,但以下方法适用于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的命令是什么,那就太好了。似乎至少部分原因是服务无法启动。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接