tree: 2e9207bd487d850a5b43735bc7e3853c56436c3c [path history] [tgz]
  1. src/
  2. .gitignore
  3. package.xml
  4. pom.xml
  5. README.md
rocketmq-replicator/README.md

rocketmq-replicator

rocketmq-replicator打包

mvn clean install -Prelease-all -DskipTest -U 

rocketmq-replicator启动

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"}

rocketmq-replicator停止

http://${runtime-ip}:${runtime-port}/connectors/${rocketmq-replicator-name}/stop

rocketmq-replicator参数说明

parametertypemustdescriptionsample value
source-rocketmqStringYesnamesrv address of source rocketmq cluster192.168.1.2:9876
target-rocketmqStringYesnamesrv address of target rocketmq cluster192.168.1.2:9876
replicator-store-topicStringYestopic name to store all source messagesreplicator-store-topic
task-divide-strategyIntegerNotask dividing strategy, default value is 0 for dividing by topic0
white-listStringYestopic white list and multiple fields are separated by commastopic-1,topic-2
task-parallelismStringNotask parallelism,default value is 1,one task will be responsible for multiple topics for the value greater than 12
source-record-converterStringYessource data parserio.openmessaging.connect.runtime.converter.JsonConverter