tree: de0ad21926a9df7222226162a0bdd54e57919b08 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.md
connectors/rocketmq-connect-http/README.md

rocketmq-connect-http

  • rocketmq-connect-http 说明
Be responsible for consuming messages from producer and writing data to another web service system.

rocketmq-connect-http 打包

mvn clean install -Dmaven.test.skip=true

rocketmq-connect-http 启动

  • http-sink-connector 启动
http://${runtime-ip}:${runtime-port}/connectors/${rocketmq-http-sink-connector-name}
?config={"source-rocketmq":"${runtime-ip}:${runtime-port}","source-cluster":"${broker-cluster}","connector-class":"org.apache.rocketmq.connect.http.sink.HttpSinkConnector","connect-topicname" : "${connect-topicname}","url":"${url}"}

例子

http://localhost:8081/connectors/httpConnectorSink?config={"source-rocketmq":"localhost:9876","source-cluster":"DefaultCluster",
"connector-class":"org.apache.rocketmq.connect.http.sink.HttpSinkConnector","connect-topicname" : "http-topic","url":"192.168.1.2"}

注: rocketmq-http-connect 的启动依赖于rocketmq-connect-runtime项目的启动,需将打好的所有jar包放置到runtime项目中pluginPaths配置的路径后再执行上面的启动请求,该值配置在runtime项目下的connect.conf文件中

rocketmq-connect-http 停止

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

rocketmq-connect-http 参数说明

  • http-sink-connector 参数说明
KEYTYPEMust be filledDescriptionExample
urlStringYESsink端 域名地址http://127.0.0.1
connect-topicnameStringYESsink需要处理数据消息topicxxxx