Cassandra从snaphot恢复而不是恢复整个数据

时间:2016-06-22 16:14:35

标签: cassandra backup datastax restore

我正在尝试使用 nodetool 命令实施Cassandra(2.2.6)备份和还原。目前我在Cassandra集群中有四个节点,其中两个是 incremental_backup的种子节点:启用

我已按照以下步骤在其中一个节点上进行备份和恢复:

  1. 使用示例表创建键空间的快照: nodetool snapshot testkeyspace
  2. 从给定的密钥空间中删除测试表:cqlsh> Drop table test
  3. 重新创建上述已删除表格的架构
  4. 停止Cassandra服务
  5. 清除cassandra-commitlog目录
  6. 将备份目录和最新快照目录的内容从test表的旧目录复制到 test表目录
  7. 启动Cassandra服务
  8. 运行nodetool repair
  9. 运行nodetool refresh testkeyspace test
  10. 在查询表时恢复后,某些记录丢失了。我不确定到底出了什么问题。

0 个答案:

没有答案
相关问题