cassandra cql shell窗口在Windows中安装后消失了

时间:2016-10-06 10:08:51

标签: cassandra datastax datastax-enterprise cqlsh

cassandra cql shell窗口在windows中安装后消失了吗? 这是使用星球cassandra中的MSI安装程序安装的。

为什么会这样?请帮帮我..

提前致谢。

4 个答案:

答案 0 :(得分: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服务

答案 1 :(得分:5)

我在使用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 :(得分:1)

转到 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

答案 3 :(得分:0)

以上内容对我无济于事,但这就是对社区64位v3.0.9所做的事情

如果您没有在安装时未选中“自动启动DataStax Cassandra社区服务” ,则需要重新安装并保持选中状态。

转到 C:\Program Files\DataStax Community,并将文件cassandra.ymal.orig重命名为cassandra.yaml,并将其保留在DataStax Community文件夹中,然后启动Cassandra CQL Shell。

注意:我不知道是否需要它,但是在执行此操作之前,我已经备份了cassandra.ymal.orig。

此外,如果任何人都可以了解Windows的启动Cassandra的命令,那将是很棒的。似乎至少部分原因是该服务无法启动