Package io.debezium.connector.cassandra
Class CassandraConnectorConfig
java.lang.Object
io.debezium.config.CommonConnectorConfig
io.debezium.connector.cassandra.CassandraConnectorConfig
public class CassandraConnectorConfig
extends io.debezium.config.CommonConnectorConfig
All configs used by a Cassandra connector agent.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of predefined SnapshotMode options.Nested classes/interfaces inherited from class io.debezium.config.CommonConnectorConfig
io.debezium.config.CommonConnectorConfig.BinaryHandlingMode, io.debezium.config.CommonConnectorConfig.EventProcessingFailureHandlingMode, io.debezium.config.CommonConnectorConfig.SchemaNameAdjustmentMode, io.debezium.config.CommonConnectorConfig.Version -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final StringThe prefix for allCommitLogTransferconfigurations.static final io.debezium.config.Fieldstatic final intstatic final booleanstatic final booleanIf disabled, commit logs would not be deleted post-process, and this could lead to disk storagestatic final intstatic final StringThe fully qualifiedCommitLogTransferclass used to transfer commit logs.static final intstatic final booleanInstead of parsing commit logs from CDC directory, this will look for the commit log with the latest modified timestamp in the commit log directory and attempt to process this file only.static final intThis config is effective only if offset_flush_interval_ms != 0static final intstatic final intThe default value of 0 implies the offset will be flushed every time.static final intstatic final intstatic final StringSpecify theConsistencyLevelused for the snapshot query.protected static final intstatic final StringMust be one of 'INITIAL', 'ALWAYS', or 'NEVER'.static final intstatic final booleanstatic final io.debezium.config.FieldDeprecated.static final io.debezium.config.FieldA comma-separated list of fully-qualified names of fields that should be excluded from change event message values.static final io.debezium.config.Fieldstatic final StringThe prefix prepended to all Kafka producer configurations, including schema registrystatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final StringThe prefix prepended to all Kafka key converter configurations, including schema registry.static final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic final io.debezium.config.Fieldstatic io.debezium.config.Field.Setstatic List<io.debezium.config.Field>static final io.debezium.config.Fieldstatic final StringThe prefix prepended to all Kafka value converter configurations, including schema registry.Fields inherited from class io.debezium.config.CommonConnectorConfig
BINARY_HANDLING_MODE, CONFIG_DEFINITION, CUSTOM_CONVERTERS, CUSTOM_RETRIABLE_EXCEPTION, DATABASE_CONFIG_PREFIX, DEFAULT_MAX_BATCH_SIZE, DEFAULT_MAX_QUEUE_SIZE, DEFAULT_MAX_QUEUE_SIZE_IN_BYTES, DEFAULT_POLL_INTERVAL_MILLIS, DEFAULT_QUERY_FETCH_SIZE, DEFAULT_RETRIABLE_RESTART_WAIT, EVENT_PROCESSING_FAILURE_HANDLING_MODE, INCREMENTAL_SNAPSHOT_ALLOW_SCHEMA_CHANGES, INCREMENTAL_SNAPSHOT_CHUNK_SIZE, MAX_BATCH_SIZE, MAX_QUEUE_SIZE, MAX_QUEUE_SIZE_IN_BYTES, POLL_INTERVAL_MS, PROVIDE_TRANSACTION_METADATA, QUERY_FETCH_SIZE, RETRIABLE_RESTART_WAIT, SANITIZE_FIELD_NAMES, SCHEMA_NAME_ADJUSTMENT_MODE, SIGNAL_DATA_COLLECTION, SKIPPED_OPERATIONS, SNAPSHOT_DELAY_MS, SNAPSHOT_FETCH_SIZE, SNAPSHOT_MAX_THREADS, SNAPSHOT_MODE_TABLES, SOURCE_STRUCT_MAKER_VERSION, TASK_ID, TOMBSTONES_ON_DELETE, TRANSACTION_TOPIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.kafka.connect.storage.Converterprotected io.debezium.connector.SourceInfoStructMaker<? extends io.debezium.connector.AbstractSourceInfo>getSourceInfoStructMaker(io.debezium.config.CommonConnectorConfig.Version version) org.apache.kafka.connect.storage.ConverterinthttpPort()keyValueConverterConfigs(String converterPrefix) booleanintlongintintPositive integer value that specifies the number of milliseconds the commit log processor should wait during each iteration for new change events to appear in the queue.booleancom.datastax.oss.driver.api.core.ConsistencyLevelbooleanWhether deletion events should have a subsequent tombstone event (true) or not (false).toString()Methods inherited from class io.debezium.config.CommonConnectorConfig
binaryHandlingMode, customConverterRegistry, customRetriableException, getConfig, getDataCollectionsToBeSnapshotted, getEventProcessingFailureHandlingMode, getHeartbeatInterval, getHeartbeatTopicsPrefix, getIncrementalSnashotChunkSize, getLogicalName, getMaxBatchSize, getMaxQueueSize, getMaxQueueSizeInBytes, getPollInterval, getQueryFetchSize, getRetriableRestartWait, getSanitizeFieldNames, getSignalingDataCollectionId, getSkippedOperations, getSnapshotDelay, getSnapshotFetchSize, getSnapshotMaxThreads, getSourceInfoStructMaker, getTaskId, getTransactionTopic, isEmitTombstoneOnDelete, isIncrementalSnapshotSchemaChangesEnabled, isSchemaChangesHistoryEnabled, isSchemaCommentsHistoryEnabled, isSignalDataCollection, legacyGetDataCollectionsToBeSnapshotted, parseSignallingMessage, schemaNameAdjustmentMode, shouldProvideTransactionMetadata, supportsOperationFiltering, supportsSchemaChangesDuringIncrementalSnapshot, validate, validateAndRecord, validateServerNameIsDifferentFromHistoryTopicName, validateSkippedOperation
-
Field Details
-
KAFKA_PRODUCER_CONFIG_PREFIX
The prefix prepended to all Kafka producer configurations, including schema registry- See Also:
-
KEY_CONVERTER_PREFIX
The prefix prepended to all Kafka key converter configurations, including schema registry.- See Also:
-
VALUE_CONVERTER_PREFIX
The prefix prepended to all Kafka value converter configurations, including schema registry.- See Also:
-
COMMIT_LOG_TRANSFER_CONFIG_PREFIX
The prefix for allCommitLogTransferconfigurations.- See Also:
-
CONNECTOR_NAME
public static final io.debezium.config.Field CONNECTOR_NAME -
KAFKA_TOPIC_PREFIX
public static final io.debezium.config.Field KAFKA_TOPIC_PREFIX -
KEY_CONVERTER_CLASS_CONFIG
public static final io.debezium.config.Field KEY_CONVERTER_CLASS_CONFIG -
VALUE_CONVERTER_CLASS_CONFIG
public static final io.debezium.config.Field VALUE_CONVERTER_CLASS_CONFIG -
DEFAULT_SNAPSHOT_MODE
Must be one of 'INITIAL', 'ALWAYS', or 'NEVER'. The default snapshot mode is 'INITIAL'. Seefor details.- See Also:
-
SNAPSHOT_MODE
public static final io.debezium.config.Field SNAPSHOT_MODE -
DEFAULT_SNAPSHOT_CONSISTENCY
Specify theConsistencyLevelused for the snapshot query.- See Also:
-
SNAPSHOT_CONSISTENCY
public static final io.debezium.config.Field SNAPSHOT_CONSISTENCY -
DEFAULT_HTTP_PORT
public static final int DEFAULT_HTTP_PORT- See Also:
-
HTTP_PORT
public static final io.debezium.config.Field HTTP_PORT -
CASSANDRA_CONFIG
public static final io.debezium.config.Field CASSANDRA_CONFIG -
COMMIT_LOG_RELOCATION_DIR
public static final io.debezium.config.Field COMMIT_LOG_RELOCATION_DIR -
DEFAULT_COMMIT_LOG_POST_PROCESSING_ENABLED
public static final boolean DEFAULT_COMMIT_LOG_POST_PROCESSING_ENABLEDIf disabled, commit logs would not be deleted post-process, and this could lead to disk storage- See Also:
-
COMMIT_LOG_POST_PROCESSING_ENABLED
public static final io.debezium.config.Field COMMIT_LOG_POST_PROCESSING_ENABLED -
DEFAULT_COMMIT_LOG_ERROR_REPROCESSING_ENABLED
public static final boolean DEFAULT_COMMIT_LOG_ERROR_REPROCESSING_ENABLED- See Also:
-
COMMIT_LOG_ERROR_REPROCESSING_ENABLED
public static final io.debezium.config.Field COMMIT_LOG_ERROR_REPROCESSING_ENABLED -
DEFAULT_COMMIT_LOG_TRANSFER_CLASS
The fully qualifiedCommitLogTransferclass used to transfer commit logs. The default option will delete all commit log files after processing (successful or otherwise). You can extend a custom implementation.- See Also:
-
COMMIT_LOG_TRANSFER_CLASS
public static final io.debezium.config.Field COMMIT_LOG_TRANSFER_CLASS -
OFFSET_BACKING_STORE_DIR
public static final io.debezium.config.Field OFFSET_BACKING_STORE_DIR -
DEFAULT_OFFSET_FLUSH_INTERVAL_MS
public static final int DEFAULT_OFFSET_FLUSH_INTERVAL_MSThe default value of 0 implies the offset will be flushed every time.- See Also:
-
OFFSET_FLUSH_INTERVAL_MS
public static final io.debezium.config.Field OFFSET_FLUSH_INTERVAL_MS -
DEFAULT_MAX_OFFSET_FLUSH_SIZE
public static final int DEFAULT_MAX_OFFSET_FLUSH_SIZEThis config is effective only if offset_flush_interval_ms != 0- See Also:
-
MAX_OFFSET_FLUSH_SIZE
public static final io.debezium.config.Field MAX_OFFSET_FLUSH_SIZE -
DEFAULT_SCHEMA_POLL_INTERVAL_MS
public static final int DEFAULT_SCHEMA_POLL_INTERVAL_MS- See Also:
-
SCHEMA_POLL_INTERVAL_MS
public static final io.debezium.config.Field SCHEMA_POLL_INTERVAL_MS -
DEFAULT_CDC_DIR_POLL_INTERVAL_MS
public static final int DEFAULT_CDC_DIR_POLL_INTERVAL_MS- See Also:
-
CDC_DIR_POLL_INTERVAL_MS
public static final io.debezium.config.Field CDC_DIR_POLL_INTERVAL_MS -
DEFAULT_SNAPSHOT_POLL_INTERVAL_MS
public static final int DEFAULT_SNAPSHOT_POLL_INTERVAL_MS- See Also:
-
SNAPSHOT_POLL_INTERVAL_MS
public static final io.debezium.config.Field SNAPSHOT_POLL_INTERVAL_MS -
DEFAULT_COMMIT_LOG_RELOCATION_DIR_POLL_INTERVAL_MS
public static final int DEFAULT_COMMIT_LOG_RELOCATION_DIR_POLL_INTERVAL_MS- See Also:
-
COMMIT_LOG_RELOCATION_DIR_POLL_INTERVAL_MS
public static final io.debezium.config.Field COMMIT_LOG_RELOCATION_DIR_POLL_INTERVAL_MS -
DEFAULT_NUM_OF_CHANGE_EVENT_QUEUES
public static final int DEFAULT_NUM_OF_CHANGE_EVENT_QUEUES- See Also:
-
NUM_OF_CHANGE_EVENT_QUEUES
public static final io.debezium.config.Field NUM_OF_CHANGE_EVENT_QUEUES -
FIELD_EXCLUDE_LIST
public static final io.debezium.config.Field FIELD_EXCLUDE_LISTA comma-separated list of fully-qualified names of fields that should be excluded from change event message values. Fully-qualified names for fields are in the form<keyspace_name>.<field_name>.<nested_field_name>. -
CASSANDRA_DRIVER_CONFIG_FILE
public static final io.debezium.config.Field CASSANDRA_DRIVER_CONFIG_FILE -
FIELD_BLACKLIST
Deprecated.Old, backwards-compatible "blacklist" property. -
DEFAULT_LATEST_COMMIT_LOG_ONLY
public static final boolean DEFAULT_LATEST_COMMIT_LOG_ONLYInstead of parsing commit logs from CDC directory, this will look for the commit log with the latest modified timestamp in the commit log directory and attempt to process this file only. Only used for Testing!- See Also:
-
LATEST_COMMIT_LOG_ONLY
public static final io.debezium.config.Field LATEST_COMMIT_LOG_ONLY -
DEFAULT_POLL_INTERVAL_MS
public static final int DEFAULT_POLL_INTERVAL_MS- See Also:
-
DEFAULT_TOMBSTONES_ON_DELETE
public static final boolean DEFAULT_TOMBSTONES_ON_DELETE- See Also:
-
DEFAULT_SNAPSHOT_FETCH_SIZE
protected static final int DEFAULT_SNAPSHOT_FETCH_SIZE- See Also:
-
validationFieldList
-
VALIDATION_FIELDS
public static io.debezium.config.Field.Set VALIDATION_FIELDS
-
-
Constructor Details
-
CassandraConnectorConfig
public CassandraConnectorConfig(io.debezium.config.Configuration config)
-
-
Method Details
-
connectorName
-
kafkaTopicPrefix
-
getKafkaConfigs
-
commitLogTransferConfigs
-
latestCommitLogOnly
public boolean latestCommitLogOnly() -
snapshotMode
-
snapshotConsistencyLevel
public com.datastax.oss.driver.api.core.ConsistencyLevel snapshotConsistencyLevel() -
httpPort
public int httpPort() -
cassandraConfig
-
commitLogRelocationDir
-
postProcessEnabled
public boolean postProcessEnabled() -
errorCommitLogReprocessEnabled
public boolean errorCommitLogReprocessEnabled() -
getCommitLogTransfer
-
offsetBackingStoreDir
-
offsetFlushIntervalMs
-
maxOffsetFlushSize
public long maxOffsetFlushSize() -
maxQueueSize
public int maxQueueSize() -
maxBatchSize
public int maxBatchSize() -
cassandraDriverConfig
-
pollInterval
Positive integer value that specifies the number of milliseconds the commit log processor should wait during each iteration for new change events to appear in the queue. Defaults to 1000 milliseconds, or 1 second. -
schemaPollInterval
-
cdcDirPollInterval
-
snapshotPollInterval
-
commitLogRelocationDirPollInterval
-
numOfChangeEventQueues
public int numOfChangeEventQueues() -
fieldExcludeList
-
tombstonesOnDelete
public boolean tombstonesOnDelete()Whether deletion events should have a subsequent tombstone event (true) or not (false). It's important to note that in Cassandra, two events with the same key may be updating different columns of a given table. So this could potentially result in records being lost during compaction if they haven't been consumed by the consumer yet. In other words, do NOT set this to true if you have kafka compaction turned on. -
getKeyConverter
public org.apache.kafka.connect.storage.Converter getKeyConverter() throws CassandraConnectorConfigException -
getValueConverter
public org.apache.kafka.connect.storage.Converter getValueConverter() throws CassandraConnectorConfigException -
keyValueConverterConfigs
-
toString
-
getContextName
- Specified by:
getContextNamein classio.debezium.config.CommonConnectorConfig
-
getSourceInfoStructMaker
protected io.debezium.connector.SourceInfoStructMaker<? extends io.debezium.connector.AbstractSourceInfo> getSourceInfoStructMaker(io.debezium.config.CommonConnectorConfig.Version version) - Specified by:
getSourceInfoStructMakerin classio.debezium.config.CommonConnectorConfig
-
getConnectorName
- Specified by:
getConnectorNamein classio.debezium.config.CommonConnectorConfig
-