You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@eventmesh.apache.org by "Pil0tXia (via GitHub)" <gi...@apache.org> on 2024/03/12 06:40:11 UTC
Re: [PR] [ISSUE #204] Add Kafka connector docs [eventmesh-site]
Pil0tXia commented on code in PR #205:
URL: https://github.com/apache/eventmesh-site/pull/205#discussion_r1520927262
##########
i18n/zh/docusaurus-plugin-content-docs/current/design-document/03-connect/11-kafka-connector.md:
##########
@@ -0,0 +1,56 @@
+# Kafka
+
+## KafkaSinkConnector:从 EventMesh 到 Kafka
+
+1. 启动你的 EventMesh Runtime。
+2. 启用 sinkConnector 并检查 `sink-config.yml`。
+3. 启动你的 KafkaConnectServer,它将订阅到 EventMesh Runtime 中 `pubSubConfig.subject` 中定义的主题,并将收到的数据发布到 Kafka 中的 `connectorConfig.topic`。
+4. 使用在 `pubSubConfig.subject` 中指定的 Topic,向 EventMesh 发送消息,然后你将在 Kafka 看到该消息。
+
+```yaml
+# 公共配置
+pubSubConfig:
+ meshAddress: 127.0.0.1:10000
+ subject: TopicTest
+ idc: FT
+ env: PRD
+ group: kafkaSink
+ appId: 5031
+ userName: kafkaSinkUser
+ passWord: kafkaPassWord
+connectorConfig:
+ connectorName: kafkaSink
+ # kafka连接参数 ↓
+ bootstrapServers: 127.0.0.1:9092
+ topic: TopicTest
+ keyConverter: org.apache.kafka.common.serialization.StringSerializer
+ valueConverter: org.apache.kafka.common.serialization.StringSerializer
+```
+
+## KafkaSourceConnector:从 Kafka 到 EventMesh
+
+1. 启动你的 EventMesh Runtime。
+2. 启用 sourceConnector 并检查 `source-config.yml`。
+3. 启动你的 KafkaConnectServer,它将订阅 Kafka的 `connectorConfig.topic `,并将读取的数据发送到 EventMesh Runtime 中的 `pubSubConfig.subject`。
+4. 向 Kafka 发送一个消息,然后你将在 EventMesh 中接收到该消息
+
Review Comment:
Looks good. However the point 4 is missing a period. Same as the doc of file connector.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org