CDC Change Agent Parameter Mappings
The format of parameter mappings depends on the version:
-
Version 1.0.3 and later:
The Change Agent for Cassandra Pulsar connection parameters are provided as system environment parameters in
cassandra-env.sh. The JVM options are appended tocassandra-env.sh. For example:export CDC_PULSAR_SERVICE_URL="pulsar://PULSAR_SERVER_IP:6650" -
Versions earlier than 1.0.3:
The Change Agent for Cassandra Pulsar connection parameters are provided as extra JVM options after the
.jarfile name in the form of a comma-separated list ofparamName=paramValue. For example:export JVM_EXTRA_OPTS="-javaagent:/path/to/agent-c4-luna-<version>-all.jar=pulsarServiceUrl=pulsar://pulsar:6650"
The following table describes the CDC Change Agent parameters, and maps JVM option strings to Cassandra strings.
| JVM Option | Description | System Mapping |
|---|---|---|
topicPrefix |
The event topic name prefix. The |
TOPIC_PREFIX |
cdcWorkingDir |
The CDC working directory where the last sent offset is saved, and where the archived and errored commitlogs files are copied. |
CDC_WORKING_DIR |
cdcPollIntervalMs |
The poll interval in milliseconds for watching new commitlog files in the CDC raw directory. |
CDC_DIR_POLL_INTERNAL_MS |
errorCommitLogReprocessEnabled |
Enable the re-processing of error commitlogs files. |
ERROR_COMMITLOG_REPROCESS_ENABLED |
cdcConcurrentProcessors |
The number of threads used to process commitlog files. The default value is the |
CDC_CONCURRENT_PROCESSORS |
maxInflightMessagesPerTask |
The maximum number of in-flight messages per commitlog processing task. |
MAX_INFLIGHT_MESSAGES_PER_TASK |
pulsarServiceUrl |
The Pulsar broker service URL. |
PULSAR_SERVICE_URL |
pulsarBatchDelayInMs |
Pulsar batching delay in milliseconds. Pulsar batching is enabled when this value is greater than zero. |
PULSAR_BATCH_DELAY_IN_MS |
pulsarKeyBasedBatcher |
When true, use the Pulsar KEY_BASED BatchBuilder. |
PULSAR_KEY_BASED_BATCHER |
pulsarMaxPendingMessages |
The Pulsar maximum size of a queue holding pending messages. |
PULSAR_MAX_PENDING_MESSAGES |
pulsarMaxPendingMessagesAcrossPartitions |
The Pulsar maximum number of pending messages across partitions. |
PULSAR_MAX_PENDING_MESSAGES_ACROSS_PARTITIONS |
pulsarAuthPluginClassName |
The Pulsar authentication plugin class name. |
PULSAR_AUTH_PLUGIN_CLASS_NAME |
pulsarAuthParams |
The Pulsar authentication parameters. |
PULSAR_AUTH_PARAMS |
sslProvider |
The SSL/TLS provider to use. |
SSL_PROVIDER |
sslTruststorePath |
The path to the SSL/TLS truststore file. |
SSL_TRUSTSTORE_PATH |
sslTruststorePassword |
The password for the SSL/TLS truststore. |
SSL_TRUSTSTORE_PASSWORD |
sslTruststoreType |
The type of the SSL/TLS truststore. |
SSL_TRUSTSTORE_TYPE |
sslKeystorePath |
The path to the SSL/TLS keystore file. |
SSL_KEYSTORE_PATH |
sslKeystorePassword |
The password for the SSL/TLS keystore. |
SSL_KEYSTORE_PASSWORD |
sslCipherSuites |
Defines one or more cipher suites to use for negotiating the SSL/TLS connection. |
SSL_CIPHER_SUITES |
sslEnabledProtocols |
Enabled SSL/TLS protocols |
SSL_ENABLED_PROTOCOLS |
sslAllowInsecureConnection |
Allows insecure connections to servers whose certificate hasn’t been signed by an approved CA. You should always disable |
SSL_ALLOW_INSECURE_CONNECTION |
sslHostnameVerificationEnable |
Enable the server hostname verification. |
SSL_HOSTNAME_VERIFICATION_ENABLE |
tlsTrustCertsFilePath |
The path to the trusted TLS certificate file. |
TLS_TRUST_CERTS_FILE_PATH |
useKeyStoreTls |
Enable or disable TLS keystore. |
USE_KEYSTORE_TLS |