Cassandra - 存档提交日志

时间:2013-09-16 14:50:03

标签: cassandra

我如何实际运行achive_commitlog命令?

我已经添加了要归档的提交日志的路径:

archive_command=/bin/ln /var/lib/cassandra/ /backup/CommitLog-3-1379341689071.log

但是当我在nodetool中启动/停止cassandra或使用快照时,日志不会被归档。我是cassandra的初学者,我真的很感激一些帮助。

1 个答案:

答案 0 :(得分:3)

答案就在评论中:

# Command to execute to archive a commitlog segment                                                      
# Parameters: %path => Fully qualified path of the segment to archive                                    
#             %name => Name of the commit log.                                                           
# Example: archive_command=/bin/ln %path /backup/%name