Cassandra Data Migrator parameters
Each parameter below offers a different connection. Review each option to determine what is best for your organization.
Common connection parameters for origin and target
Property | Default | Notes |
---|---|---|
|
|
Hostname/IP address of the cluster.
May be a comma-separated list, and can follow the |
|
|
Port number to use if not specified on |
|
(Not set) |
Secure Connect Bundle, used to connect to an Astra DB database.
Example: |
|
|
Username (or |
|
|
Password (or |
|
|
Hostname/IP address of the cluster.
May be a comma-separated list, and can follow the |
|
|
Port number to use if not specified on |
|
(Not set) |
Secure Connect Bundle, used to connect to an Astra DB database.
Default is not set.
Example if set: |
|
|
Username (or |
|
|
Password (or |
Origin schema parameters
Property | Default | Notes | ||
---|---|---|---|---|
|
Required - the |
|||
|
|
Default is |
||
|
Default is empty, meaning the names are determined automatically if |
|||
|
|
Default is
|
||
|
Default is empty, meaning the names are determined automatically if |
|||
|
Default is empty.
If column names are changed between the origin and target clusters, then this mapped list provides a mechanism to associate the two.
The format is |
For optimization reasons, Cassandra Data Migrator does not migrate TTL and writetime at the field level. Instead, Cassandra Data Migrator finds the field with the highest TTL and the field with the highest writetime within an origin table row, and uses those values on the entire target table row. |
Target schema parameter
Property | Default | Notes |
---|---|---|
|
Equals the value of |
This parameter is commented out.
It’s the |
Auto-correction parameters
Auto-correction parameters allow Cassandra Data Migrator to correct data differences found between the origin and target clusters when you run the DiffData
program.
Typically, these parameters are run-disabled for "what if" migration testing, and generate a list of data discrepancies.
The reasons for these discrepancies can then be investigated, and if necessary the parameters below can be enabled.
For information about invoking DiffData
in a Cassandra Data Migrator command, see Cassandra Data Migrator steps in validation mode.
Property | Default | Notes | ||
---|---|---|---|---|
|
|
When |
||
|
|
When
|
||
|
|
Commented out. By default, counter tables are not copied when missing, unless explicitly set. |
||
|
|
Commented out. This CSV file is used as input, as well as output, when applicable. If the file exists, only the partition ranges in this file are migrated or validated. Similarly, if exceptions occur while migrating or validating, partition ranges with exceptions are logged to this file. |
Performance and operations parameters
Performance and operations parameters that can affect migration throughput, error handling, and similar concerns.
Property | Default | Notes |
---|---|---|
|
|
In standard operation, the full token range of -2^63 to 2^63-1 is divided into a number of parts, which are parallel processed.
You should aim for each part to comprise a total of ≈1-10GB of data to migrate.
During initial testing, you may want this to be a small number, such as |
|
|
When writing to the target cluster, this comprises the number of records that are put into an |
|
|
Concurrent number of operations across all parallel threads from the origin cluster. This value may be adjusted up or down, depending on the amount of data and the processing capacity of the origin cluster. |
|
|
Concurrent number of operations across all parallel threads from the target cluster. This may be adjusted up or down, depending on the amount of data and the processing capacity of the target cluster. |
|
|
Commented out.
Read consistency from the origin cluster and from the target cluster when records are read for comparison purposes.
The consistency parameters may be one of: |
|
|
Commented out.
Write consistency to the target cluster.
The consistency parameters may be one of: |
|
|
Commented out. Number of rows of processing after which a progress log entry is made. |
|
|
Commented out. This parameter affects the frequency of reads from the origin cluster and the frequency of flushes to the target cluster. |
|
|
Commented out.
Controls how many errors a thread may encounter during |
Transformation parameters
Parameters to perform schema transformations between the origin and target clusters.
By default, these parameters are commented out.
Property | Default | Notes | ||
---|---|---|---|---|
|
|
Timestamp value in milliseconds.
Partition and clustering columns cannot have null values.
If they are added as part of a schema transformation between the origin and target clusters, it is possible that the origin side is null.
In this case, the |
||
|
|
Default is 0 (disabled).
Timestamp value in microseconds to use as the |
||
|
|
Default is |
||
|
Default is empty. A comma-separated list of additional codecs to enable.
|
|||
|
|
Configuration for |
||
|
|
Default is |
Cassandra filter parameters
Cassandra filters are applied on the coordinator node.
Depending on the filter, the coordinator node may need to do a lot more work than is normal, notably because Cassandra Data Migrator specifies ALLOW FILTERING
.
By default, these parameters are commented out.
Property | Default | Notes |
---|---|---|
|
|
Default is |
|
|
Default is |
|
CQL added to the |
Java filter parameters
Java filters are applied on the client node.
Data must be pulled from the origin cluster and then filtered.
However, this option may have a lower impact on the production cluster than Cassandra filters.
Java filters put a load onto the Cassandra Data Migrator processing node.
They send more data from Cassandra.
Cassandra filters put a load on the Cassandra nodes because Cassandra Data Migrator specifies ALLOW FILTERING
, which could cause the coordinator node to perform a lot more work.
By default, these parameters are commented out.
Property | Default | Notes |
---|---|---|
|
|
Between 1 and 100 percent of the token in each split that is migrated. This property is used to do a wide and random sampling of the data. The percentage value is applied to each split. Invalid percentages are treated as 100. |
|
|
The lowest (inclusive) writetime values to be migrated.
Using the |
|
|
The highest (inclusive) writetime values to be migrated.
The |
|
Filter rows based on matching a configured value.
With |
|
|
String value to use as comparison.
The whitespace on the ends of |
Constant column feature parameters
The constant columns feature allows you to add constant columns to the target table.
If used, the spark.cdm.feature.constantColumns.names
, spark.cdm.feature.constantColumns.types
, and spark.cdm.feature.constantColumns.values
lists must all be the same length.
By default, these parameters are commented out.
Property | Default | Notes |
---|---|---|
|
A comma-separated list of column names, such as |
|
|
A comma-separated list of column types. |
|
|
A comma-separated list of hard-coded values.
Each value should be provided as you would use on the |
|
|
|
Defaults to comma, but can be any regex character that works with |
Explode map feature parameters
The explode map feature allows you convert an origin table map into multiple target table records.
By default, these parameters are commented out.
Property | Notes |
---|---|
|
The name of the map column, such as |
|
The name of the column on the target table that holds the map key, such as |
|
The name of the column on the target table that holds the map value, such as |
Guardrail feature parameter
The guardrail feature manages records that exceed guardrail checks. The guardrail job generates a report; other jobs skip records that exceed the guardrail limit.
By default, these parameters are commented out.
Property | Default | Notes |
---|---|---|
|
|
The |
TLS (SSL) connection parameters
These are TLS (SSL) connection parameters, if configured, for the origin and target clusters. Note that a secure connect bundle (SCB) embeds these details.
By default, these parameters are commented out.
Property | Default | Notes |
---|---|---|
|
|
If TLS is used, set to |
|
Path to the Java truststore file. |
|
|
Password needed to open the truststore. |
|
|
|
|
|
Path to the Java keystore file. |
|
|
Password needed to open the keystore. |
|
|
|
|
|
|
If TLS is used, set to |
|
Path to the Java truststore file. |
|
|
Password needed to open the truststore. |
|
|
|
|
|
Path to the Java keystore file. |
|
|
Password needed to open the keystore. |
|
|
|