使用自定义配置文件启动 cassandra 服务器

Starting cassandra server with custom configuration file

我想知道是否可以直接从命令通过管道传输 Cassandra 的配置文件,而不是获取默认文件。

是的,您可以使用 -d 标志调用 Cassandra。如果您需要即时指定一个,该标志将允许您指定 cassandra.config=directory。然后,Cassandra 将在 that 目录中查找 cassandra.yaml 文件,而不是默认目录。

对于 cassandra 实用程序的其他选项,check the DataStax docs