consumer.properties
file.# list of brokers used for bootstrapping knowledge about the rest of the cluster# format: host1:port1,host2:port2 ...bootstrap.servers=localhost:9092# consumer group idgroup.id=test-consumer-grouppartition.assignment.strategy=org.apache.kafka.clients.consumer.RoundRobinAssignor# What to do when there is no initial offset in Kafka or if the current# offset does not exist any more on the server: latest, earliest, none#auto.offset.reset=
Parameter | Description |
bootstrap.servers | List of broker access points of the self-built cluster. |
group.id | ID of the consumer group used during data migration. It must be different from the names of existing consumer groups in the self-built cluster. |
partition.assignment.strategy | Partition assignment policy, such as partition.assignment.strategy=org.apache.kafka.clients.consumer.RoundRobinAssignor |
producer.properties
file.# list of brokers used for bootstrapping knowledge about the rest of the cluster# format: host1:port1,host2:port2 ...bootstrap.servers=localhost:9092# specify the compression codec for all data generated: none, gzip, snappy, lz4compression.type=none
Parameter | Description |
bootstrap.servers | Accessed network of the CKafka instance, which can be copied from the Network column in the Access Mode section on the Instance Details page in the console. |
compression.type | Data compression type. CKafka does not support the Gzip compression format. |
.bin
directory to start migration.sh bin/kafka-mirror-maker.sh --consumer.config config/consumer.properties --producer.config config/producer.properties --whitelist topicName
whitelist
is a regular expression, and topics whose names hit it will be migrated.kafka-consumer-groups.sh
in the bin
directory to view the consumption progress of the self-built cluster.bin/kafka-consumer-groups.sh --new-consumer --describe --bootstrap-server self-built cluster access point --group test-consumer-group
group
is the ID of the consumer group used during data migration.
Was this page helpful?