Create a Smart Connect task to copy data unidirectionally or bidirectionally between two Kafka instances.
Data in the source Kafka instance is synchronized to the target Kafka instance in real time.
Select the region where your Kafka instance is located.
The instance alias is used in the following scenarios:
Parameter |
Description |
---|---|
Instance Alias |
Naming rules: 1–20 characters and only letters, digits, hyphens (-), or underscores (_). The instance alias is used in the following scenarios:
|
Config Type |
Options:
|
Instance Name |
Set this parameter when Config Type is set to Instance name. Select an existing Kafka instance from the drop-down list. The peer Kafka instance and the current Kafka instance must be in the same VPC. Otherwise, they cannot be identified. |
Kafka Address |
Set this parameter when Config Type is set to Kafka address. Enter the IP addresses and port numbers for connecting to the Kafka instance. When you copy Kafka data, the two Kafka instances must be connected through the intranet. If they are in different VPCs, connect the network by referring to Accessing Kafka Using a VPC Endpoint Across VPCs or VPC Peering Connection. |
Authentication |
Options:
|
Authentication Mechanism |
Set this parameter when Authentication is set to SASL_SSL/SASL_PLAINTEXT.
|
Username |
Set this parameter when Authentication is set to SASL_SSL/SASL_PLAINTEXT. Set in instance creation or user creation. |
Password |
Set this parameter when Authentication is set to SASL_SSL/SASL_PLAINTEXT. Set in instance creation or user creation. |
After a Smart Connect task is created, modifying the authentication method or mechanism, or password of the peer end instance causes the synchronization task to fail. In this case, delete the current task and create another one.
Parameter |
Description |
---|---|
Sync Direction |
There are three synchronization directions:
|
Topics |
Specify the topics whose data is to be replicated.
NOTE:
Data of topics whose names end with "internal" (for example, topic.internal) will not be synchronized. |
Tasks |
Number of data replication tasks. The default value is 2. You are advised to use the default value. If Sync Direction is set to Both, the actual number of tasks will be twice the number of tasks you configure here. |
Rename Topics |
Add the alias of the source Kafka instance before the target topic name to form a new name of the target topic. For example, if the alias of the source instance is A and the target topic name is test, the renamed target topic will be A.test. If you select Both for Sync Direction, enable Rename Topics to prevent infinite replication. |
Add Source Header |
The target topic receives the replicated messages. The message header contains the message source. If you select Both for Sync Direction, Add Source Header is enabled by default to prevent infinite replication. |
Sync Consumer Offset |
Enable this option to synchronize the consumer offset to the target Kafka instance. NOTICE:
After enabling Sync Consumer Offset, pay attention to the following:
|
Replicas |
Number of topic replicas when a topic is automatically created in the peer instance. The value of this parameter cannot exceed the number of brokers in the peer instance. This parameter takes precedence over the default.replication.factor parameter set in the peer instance. |
Start Offset |
Options:
|
Compression |
Compression algorithm to use for copying messages. |
Topic Mapping |
Customize the target topic name. Maximum mappings: 20. Rename Topic and Topic Mapping cannot be configured at the same time. |
If "Connectivity check passed." is displayed, the Kafka instances are connected.