View a markdown version of this page

使用 CQLReplicator 迁移数据 - Amazon Keyspaces(Apache Cassandra 兼容)
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

使用 CQLReplicator 迁移数据

借助 CQLReplicator,您可以使用 CQL 查询智能扫描 Cassandra 令牌环,从而近乎实时地从 Apache Cassandra 读取数据。CQLReplicator 不使用 Cassandra CDC,而是实施缓存策略来减少执行全面扫描的性能损失。

为了减少写入目标的次数,CQLReplicator 会自动删除重复的复制事件。借助 CQLReplicator,您可以调整从源数据库到目标数据库的更改复制,从而可以近乎实时地将数据从 Apache Cassandra 迁移到 Amazon Keyspaces。

下图显示了使用 Amazon Glue执行的 CQLReplicator 作业的典型架构。

  1. 要允许访问在私有 VPC 中运行的 Apache Cassandra,请将 Amazon Glue 连接类型配置为网络。

  2. 要通过 CQLReplicator 作业删除重复项并启用密钥缓存,请配置 Amazon Simple Storage Service(Amazon S3)。

  3. CQLReplicator 作业将经过验证的源数据库更改直接流式传输到 Amazon Keyspaces。

使用 CQLReplicator 将数据从 Apache Cassandra 迁移到 Amazon Keyspaces。

有关使用 CQLReplicator 迁移过程的更多信息,请参阅 Amazon 数据库博客使用 CQLReplicator 将 C assandra 工作负载迁移到亚马逊密钥空间上的以下文章以及使用将 Apache Cassan dra 工作负载 Amazon 迁移到亚马逊密钥空间的规范性指南。 Amazon Glue