Advanced Kafka Settings
On this page
When you integrate Relational Migrator with Kafka, you can configure
more advanced settings by updating your user.properties file.
Your user.properties file is located in an OS specific location. For more
information, see Relational Migrator File Locations.
User Properties
Provide optional configuration settings by updating your user.properties file.
spring.profiles.activeDefault: local
Relational Migrator can be run in the following profiles:
kafka: Remote server using embedded server deployment.confluent: Remote server using Confluent Cloud for managed Kafka.
server.portDefault: 8278
The port the Relational Migrator application runs on.
migrator.kafka.bootstrap.serversA list of
host:portpairs of your pre-existing kafka cluster.For example:
kafka-1:9092, kafka-2:9093.For more information, see Worker Configuration Properties.
migrator.kafka.connect.urlThe Kafka Connect host url using the
host:portformat.For example:
https://localhost:8083.migrator.kafka.connect.metrics.jmx.service.url- The Kafka Connect Java Management Extensions (JMX) url.
migrator.kafka.connect.metrics.jmx.sslDefault: false
Set to
trueif SSL is enabled.You can add additonal remote Java Management Extensions (JMX) for SSL configurations by prefixing them with
migrator.kafka.connect.metrics.jmx.properties.migrator.kafka.enable.topic.cleanupDefault: false
Cleans up the topics created during the last migration job.
migrator.connector.source.common.errors.max.retriesDefault: 5
For the source connector, it specifies the maximum number of retries on a retriable failure. Relational Migrator attempts recovery from source database retriable failures up to a set limit before the job fails.
migrator.connector.source.common.errors.retry.initial.max.msDefault: 30000 ms
For the source connector, it specifies the delay in milliseconds to start again after a retriable failure. The value is doubled after every retry but does not exceed
migrator.connector.source.common.errors.retry.delay.max.ms.migrator.connector.source.common.errors.retry.delay.max.msDefault: 60000 ms
For the source connector, it specifies the maximum delay in milliseconds between retries after a retriable failure.
migrator.connector.sink.common.errors.max.retriesDefault: 5
For the sink connector, it specifies the maximum number of retries on a retriable failure. Relational Migrator attempts recovery from source database retriable failures up to a set limit before the job fails.
migrator.connector.sink.common.errors.retry.initial.max.msDefault: 30000 ms
For the sink connector, it specifies the delay in milliseconds to start again after a retriable failure. The value is doubled after every retry but does not exceed
migrator.connector.sink.common.errors.retry.delay.max.ms.migrator.connector.sink.common.errors.retry.delay.max.msDefault: 60000 ms
For the sink connector, it specifies the maximum delay in milliseconds between retries after a retriable failure.
Schema Registry Properties
Use Relational Migrator with any schema registry by adding properties to the user.properties
file with the prefix migrator.connector.properties.common.
migrator.connector.properties.common.key.converterDefault:
migrator.connector.properties.common.key.converterThe convertor class for the message key.
migrator.connector.properties.common.value.converterDefault:
org.apache.kafka.connect.json.JsonConverterThe convertor class for the message value.
migrator.connector.properties.common.key.converter.apicurio.registry.urlThis specifies the URL of the Apicurio Registry for the key converter.
It uses the
http://{host}:{port}orhttps://{host}:{port}format.migrator.connector.properties.common.value.converter.apicurio.registry.urlThis specifies the URL of the Apicurio Registry for the value converter.
It uses the
http://{host}:{port}orhttps://{host}:{port}format.
Source Connector Properties
Relational Migrator sets default Debezium source connector properties
for each supported source database. The connector properties can be
overridden by adding them in the user.properties file with the prefix
migrator.connector.source.common. For example:
migrator.connector.source.common.errors.max.retries: 0
In this example, the default value is five but it has now been set to zero. This means there is no retries after a retriable failure.
Sink Connector Properties
Relational Migrator sets default Migrator sink connector properties
for each supported source database. The connector properties can be
overridden by adding them in the user.properties file with the prefix
migrator.connector.sink.common. For example:
migrator.connector.sink.common.errors.max.retries: 0
In this example, the default value is five but it has now been set to zero. This means there are no retries.