【问题标题】:Migrate data from Cassandra cluster to single machine将数据从 Cassandra 集群迁移到单机
【发布时间】:2018-08-20 10:36:24
【问题描述】:

我在四台机器上有一个 cassandra 集群(四个节点),每个节点的数据大小为 745.54 GiB ,670.79 GiB ,695.65 GiB ,634.43 GiB。我需要将所有数据迁移到单节点的单机上.我有所有复制因子为 3 的键空间,我需要将复制因子更改为 1。我在任何地方都没有找到任何解决方案,有人告诉我如何将此集群迁移到单机。

【问题讨论】:

    标签: cassandra


    【解决方案1】:

    您需要拍摄快照:

    https://docs.datastax.com/en/cassandra/3.0/cassandra/tools/toolsSnapShot.html

    例如单表快照:

    nodetool snapshot --table cyclist_name cycling
    

    这里记录了恢复过程: https://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsBackupSnapshotRestore.html

    【讨论】:

    • 我想补充一点,您需要在所有四个节点上拍摄此快照以包含所有数据(如果您确定所有数据都具有复制 3,则为 2 个节点)。然后每个快照都需要通过 sstableloader 运行到单个节点。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-16
    • 2013-11-28
    • 2015-03-25
    • 2018-10-21
    • 2016-02-08
    • 2019-08-07
    相关资源
    最近更新 更多