Cassandra 1.2 - 在另一个位置保存 output.log

Cassandra 1.2 - Save output.log in another location

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

位置

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

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

请帮忙。谢谢 贾斯卡兰

Cassandra 守护进程使用 jsvc, this will pipe all the standard/error out to a file specified in -outfile (errout to &1 sends to same). This in the Cassandra Debian package is configured in the init script: https://github.com/apache/cassandra/blob/cassandra-1.2/debian/init#L141