【问题标题】:cassandra cql shell window got disappears after installation in windowscassandra cql shell窗口在windows中安装后消失了
【发布时间】:2017-02-15 00:48:12
【问题描述】:

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

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

提前致谢。

【问题讨论】:

  • 您安装的是哪个 C* 版本?您正在使用哪些窗口?你升级了 Cassandra 的版本吗?如果是这种情况,您是否尝试过卸载并重新安装?
  • 我正在使用 datastax-community-32bit_3.0.9.msi 文件来安装 cassandra。我已使用卸载程序卸载并修复并重新安装。对于打开并立即关闭的 cqlsh shell,我仍然面临同样的问题。请帮我。提前致谢。
  • 您能否转到您的 Cassandra 主目录(很可能位于 C:\Program Files\dataStax-DDC)并转到日志文件夹。请分享日志文件夹中显示的内容。

标签: cassandra datastax datastax-enterprise cqlsh


【解决方案1】:

DataStax 3.9 也有同样的问题。我是这样排序的:

第一步:打开文件: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 服务

【讨论】:

  • 谢谢..工作得很好。
  • 系统重启后为我工作
  • Hii 在 DataStax-DDC\apache-cassandra\conf\cassandra.yaml 文件中,我在数据文件夹和 yaml 中没有 cdc_raw_directory。文件你能告诉如何添加 cdc_raw 文件
【解决方案2】:

DataStax Community 3.0.9 遇到了同样的问题

第 1 步:转到C:\Program Files\DataStax Community\apache-cassandra\conf 并在记事本或写字板中打开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 并确保您有以下文件夹:

提交日志、数据、提示、saved_caches、cdc_raw

如果缺少 cdc_raw 文件夹,请创建一个名为 cdc_raw 的文件夹

之后,再次运行 Cassandra CQL shell。这应该可以解决问题。

【讨论】:

    【解决方案3】:

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

    【讨论】:

      【解决方案4】:

      上面没有对我有用,但这对社区 64bit 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,那就太棒了。这个问题似乎至少部分是服务无法启动

      【讨论】:

        猜你喜欢
        • 2023-03-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-11-06
        • 2014-07-25
        • 2016-10-16
        • 2016-05-20
        • 2015-01-21
        相关资源
        最近更新 更多