2013-09-16 70 views
1

我如何實際運行achive_commitlog命令?Cassandra - 歸檔提交日誌

我已經添加了路徑提交日誌i灣存檔:

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

但是,當我在nodetool開始/停止卡桑德拉或使用快照日誌不會被存檔。我是卡桑德拉的初學者,我非常感謝你的幫助。

回答

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