【问题标题】:Find the correct Cassandra.yaml file找到正确的 Cassandra.yaml 文件
【发布时间】:2023-04-04 09:47:01
【问题描述】:

我是 Cassandra 的新手,我在识别确切的 cassandra.yaml 文件时遇到问题,因为我在 linux 上的搜索显示不同位置的 3 个不同文件。谁能告诉我如何找到我正在运行的 Cassandra 使用的正确的“cassandra.yaml”文件。

【问题讨论】:

    标签: cassandra-3.0


    【解决方案1】:

    欢迎来到 Cassandra 的数据库!

    cassandra.yaml 的文件(通常)在/etc/cassandra/conf 中。

    如下图所示:

    【讨论】:

    • 感谢您的回复。在我们的案例中,情况有所不同。是否有任何 Cqlsh 查询不像 mysql 中使用的那样做 'select @@datadir;'用于查看数据目录路径。
    • 我不确定我们是否在谈论同一件事。 Cassandra.yaml 文件和 CQLSH 是不同的。 CQLSH 是类似于 mysql 终端的终端,您可以执行查询,而 Cassandra.yaml 文件是数据库的配置。如果可以,请在您的问题中向我们提供更多详细信息。
    【解决方案2】:

    在我的 ubuntu 20.04 版本中,cassandra.yaml 位于 /etc/cassandra/cassandra.yaml

    【讨论】:

      猜你喜欢
      • 2013-05-14
      • 2013-12-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多