You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by zh...@apache.org on 2022/03/02 03:39:40 UTC

[rocketmq-connect] 30/39: Supplemental replicator documentation (#506)

This is an automated email from the ASF dual-hosted git repository.

zhoubo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-connect.git

commit d2e168e61a03a2d5b72bfe954afb49be810a3049
Author: zhoubo <87...@qq.com>
AuthorDate: Sun Dec 29 21:48:44 2019 +0800

    Supplemental replicator documentation (#506)
---
 README.md | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/README.md b/README.md
index 538568b..0cb4c9a 100644
--- a/README.md
+++ b/README.md
@@ -3,8 +3,11 @@
 ## rocketmq-replicator打包
 ````
 mvn clean install -Prelease-all -DskipTest -U 
+打包成功后将rocketmq-replicator-0.1.0-SNAPSHOT-jar-with-dependencies.jar(fatjar)放到runtime配置的pluginPaths目录下
 ````
 ## rocketmq-replicator启动
+
+同步topic和消息
 ````
 http://${runtime-ip}:${runtime-port}/connectors/${rocketmq-replicator-name}
 ?config={"connector-class":"org.apache.rocketmq.replicator.RmqSourceReplicator","source-rocketmq":"xxxx:9876","target-rocketmq":"xxxxxxx:9876","replicator-store-topic":"replicatorTopic","taskDivideStrategy":"0","white-list":"TopicTest,TopicTest2","task-parallelism":"2","source-record-converter":"org.apache.rocketmq.connect.runtime.converter.JsonConverter"}
@@ -17,6 +20,10 @@ http://${runtime-ip}:${runtime-port}/connectors/${rocketmq-replicator-name}/stop
 ````
 
 ## rocketmq-meta-connector启动
+
+同步消费消费进度和ConsumerGroup
+
+注:此功能尚不成熟还需要后续版本优化
 ````
 http://${runtime-ip}:${runtime-port}/connectors/${rocketmq-replicator-name}
 ?config={"connector-class":"org.apache.rocketmq.replicator.RmqMetaReplicator","source-rocketmq":"xxxx:9876","target-rocketmq":"xxxxxxx:9876","replicator-store-topic":"replicatorTopic","offset.sync.topic":"syncTopic","taskDivideStrategy":"0","white-list":"TopicTest,TopicTest2","task-parallelism":"2","source-record-converter":"org.apache.rocketmq.connect.runtime.converter.JsonConverter"}
@@ -34,8 +41,11 @@ parameter | type | must | description | sample value
 ---|---|---|---|---|
 source-rocketmq | String | Yes | namesrv address of source rocketmq cluster | 192.168.1.2:9876 |
 target-rocketmq | String | Yes | namesrv address of target rocketmq cluster | 192.168.1.2:9876 |
+target-cluster | String | Yes | target rocketmq cluster name | DefaultCluster |
+source-cluster | String | Yes | source rocketmq cluster name | DefaultCluster |
 replicator-store-topic | String | Yes | topic name to store all source messages | replicator-store-topic |
 task-divide-strategy | Integer | No | task dividing strategy, default value is 0 for dividing by topic | 0 |
 white-list | String | Yes | topic white list and multiple fields are separated by commas | topic-1,topic-2 |
 task-parallelism | String | No | task parallelism,default value is 1,one task will be responsible for multiple topics for the value greater than 1 | 2 |
 source-record-converter | String | Yes | source data parser | io.openmessaging.connect.runtime.converter.JsonConverter |
+topic.rename.format | String | Yes | rename topic name rules | rename-${topic} (${topic} represents the source topic name) |