You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/04/05 16:07:32 UTC

[GitHub] [rocketmq-externals] gripson commented on a change in pull request #548: docs(connect): upload gitbook markdown code

gripson commented on a change in pull request #548: docs(connect): upload gitbook markdown code
URL: https://github.com/apache/rocketmq-externals/pull/548#discussion_r403721468
 
 

 ##########
 File path: docs/cn/GitBook/connector/replicator/rocketmq-replicator.md
 ##########
 @@ -0,0 +1,135 @@
+---
+description: Replicator快速开始
+---
+
+# Replicator快速开始
+
+## RocketMQ Replicator Quick Start
+
+### 环境依赖
+
+1. **64bit JDK 1.8+;**
+2. **Maven 3.2.x或以上版本;**
+3. **Git**
+4. **RocketMQ集群环境;**
+
+### 项目下载
+
+```bash
+$ git clone https://github.com/apache/rocketmq-externals.git
+```
+
+### 项目构建
+
+```bash
+$ cd rocketmq-externals/rocketmq-replicator
+$ mvn clean install -Prelease-all -DskipTest -U
+
+### 出现如下信息,项目构建成功
+ 
+
+...
+[INFO] ------------------------------------------------------------------------
+[INFO] BUILD SUCCESS
+[INFO] ------------------------------------------------------------------------
+[INFO] Total time:  14.432 s
+[INFO] Finished at: 2019-10-11T14:08:41+08:00
+[INFO] ------------------------------------------------------------------------
+```
+
+### 项目部署使用
+
+打包成功后将`rocketmq-replicator-0.1.0-SNAPSHOT-jar-with-dependencies.jar`(fatjar)放到`runtime`配置的`pluginPaths`目录下
+
+```bash
+$ cd target
+# 拷贝jar包到RocketMQ Runtime插件文件夹
+$ cp rocketmq-replicator-0.1.0-SNAPSHOT-jar-with-dependencies.jar /usr/local/connectors-plugin/
+```
+
+{% hint style="warning" %}
+**RocketMQ Runtime插件文件路径可配置,需要和Runtime参数中的插件路径配置相对应。**
+
+注:[Runtime 插件路径配置](../../rocketmq-connect-1/rocketmq-runtime/runtime-can-shu-pei-zhi.md#runtime-pei-zhi-can-shu-shuo-ming)
+{% endhint %}
+
+### 启动
+
+
+
+发送GET请求,启动rocketmq-replicator
+
+* 请求模板
+
+```http
+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",
+ target-cluster":"{RocketMQCluster-Target}",
 
 Review comment:
   ```suggestion
   ""target-cluster":"{RocketMQCluster-Target}",
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services