【问题标题】:Cassandra 1.2 - Save output.log in another locationCassandra 1.2 - 将 output.log 保存在另一个位置
【发布时间】:2016-03-19 05:20:27
【问题描述】:

我正在使用 datastax cassandra 1.2。 output.log 文件保存在 /var/log/cassandra/output.log 位置

如何更改 output.log 的文件夹位置。

我已成功通过以下方式更改 system.log 文件夹位置: /etc/cassandra/log4j-server.properties

请帮忙。谢谢 贾斯卡兰

【问题讨论】:

  • 为什么在2016年你会使用cassandra 1.2,最新的apache cassandra版本是3.4。而最新的datastax企业cassandra是2.1
  • 嗨 Abhishek,我们也在使用 datastax 2.1 进行测试。然后我们将迁移到这个版本。谢谢你的建议。

标签: cassandra datastax


【解决方案1】:

Cassandra 守护进程使用jsvc,这会将所有标准/错误输出到-outfile 中指定的文件(错误到&1 发送到相同的文件)。这个在 Cassandra Debian 包中是在 init 脚本中配置的:https://github.com/apache/cassandra/blob/cassandra-1.2/debian/init#L141

【讨论】:

    猜你喜欢
    • 2021-01-08
    • 1970-01-01
    • 1970-01-01
    • 2017-11-23
    • 2013-03-23
    • 2011-07-12
    • 1970-01-01
    • 2022-01-06
    • 1970-01-01
    相关资源
    最近更新 更多