Movatterモバイル変換


[0]ホーム

URL:


✨ As of November 2023, Arcion has become a part of Databricks.Learn more here
YugabyteCQL

Destination YugabyteCQL#

The extractedreplicant-cli will be referred to as the$REPLICANT_HOME directory in the proceeding steps.

I. Set up Connection Configuration#

  1. From$REPLICANT_HOME, navigate to the sample YugabyteSQL connection configuration file:

    vi conf/conn/yugabytecql.yaml
  2. You can store your connection credentials in a secrets management service and tell Replicant to retrieve the credentials. For more information, seeSecrets management.

    Otherwise, you can put your credentials like usernames and passwords in plain form using the following format:

    type:YUGABYTE_CQL#You can specify multiple Cassandra nodes using the format below:cassandra-nodes:NODE_NAME:host:NODE_HOSTport:PORT_NUMBERusername:USERNAMEpassword:PASSWORDmax-connections:MAX_NUMBER_OF_CONNECTIONS

    Replace the following:

    • NODE_NAME: the node name
    • NODE_HOST: the node host
    • PORT_NUMBER: the port number inNODE_HOST
    • USERNAME: the username that connects to the Cassandra server
    • PASSWORD: the password associated withUSERNAME
    • MAX_NUMBER_OF_CONNECTIONS: the maximum number of connections replicant can open in YugabyteCQL

    You can also configure theread consistency levels andwrite consistency levels by setting the following two parameters in the connection configuration file:

    • read-consistency-level
    • write-consistency-level

    The following consistency levels are supported:

    • ANY
    • ONE
    • TWO
    • THREE
    • QUORUM
    • ALL
    • LOCAL_QUORUM
    • EACH_QUORUM
    • SERIAL
    • LOCAL_SERIAL
    • LOCAL_ONE

    Default:LOCAL_QUORUM.

    The following is a sample connection configuration file:

    type:YUGABYTE_CQLcassandra-nodes:node1:host:172.17.0.2port:9042node2:host:172.17.0.3port:9043username:'alex'password:'alex#123'read-consistency-level:LOCAL_QUORUMwrite-consistency-level:LOCAL_QUORUMmax-connections:30

II. Set up Applier Configuration#

To configure replication according to your requirements, specify your configuration in the Applier configuration file. You can find a sample Applier configuration fileyugabytecql.yaml in the$REPLICANT_HOME/conf/dst directory.

For more information on running Replicant in different modes, seeRunning Replicant.

You can configure YugabyteCQL for operating in either snapshot or realtime modes:

Configuresnapshot mode#

For operating in snapshot mode, specify your configuration under thesnapshot section of the conifiguration file. For example:

snapshot:threads:16txn-size-rows:65_000skip-tables-on-failures:falsekeyspaces:testdb:replication-property:"{'class' : 'SimpleStrategy', 'replication_factor' : 1}"durable-writes:trueenable-cdc:false

Notice that you need to specifythe namespace configuration underkeyspaces. It follows this format:

keyspaces:KEYSPACE_NAME:replication-property:"REPLICATION_PROPERTIES"durable-writes: {true|false}enable-cdc: {true|false}

In the preceding format:

Use bulk loading#

If you want to use bulk loading in snapshot mode, usethebulk-load section to specify your configuration. For example:

snapshot:threads:16txn-size-rows:65_000skip-tables-on-failures:falsebulk-load:enable:truetype:FILE
Note: For YugabyteCQL, onlyFILE type bulk loading is supported.

Configurerealtime mode#

For operating in realtime mode, specify your configuration under therealtime section of the conifiguration file. For example:

realtime:txn-size-rows:65_000skip-tables-on-failures:false

For a detailed explanation of configuration parameters in the Applier file, seeApplier Reference.


[8]ページ先頭

©2009-2026 Movatter.jp