Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cassandra-归档提交日志_Cassandra - Fatal编程技术网

Cassandra-归档提交日志

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

如何实际运行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 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