Cassandra-归档提交日志
如何实际运行achive\u commitlog命令 我已将提交日志的路径添加到要存档的wan中:Cassandra-归档提交日志,cassandra,Cassandra,如何实际运行achive\u commitlog命令 我已将提交日志的路径添加到要存档的wan中: archive_command=/bin/ln /var/lib/cassandra/ /backup/CommitLog-3-1379341689071.log 但当我启动/停止cassandra或在nodetool中使用snapshot时,日志不会被归档。我是卡桑德拉的初学者,非常感谢您的帮助。答案就在评论中: # Command to execute to archive a commit
archive_command=/bin/ln /var/lib/cassandra/ /backup/CommitLog-3-1379341689071.log
但当我启动/停止cassandra或在nodetool中使用snapshot时,日志不会被归档。我是卡桑德拉的初学者,非常感谢您的帮助。答案就在评论中:
# 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