This is an automated email from the ASF dual-hosted git repository.
duhengforever pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-connect.git
The following commit(s) were added to refs/heads/master by this push:
new 9403645 Update README.md
9403645 is described below
commit 9403645a9ed29e0543e5a6ffb344d9e7b1f89999
Author: Heng Du <[email protected]>
AuthorDate: Wed Jun 8 15:32:44 2022 +0800
Update README.md
---
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index e168aa6..c907372 100644
--- a/README.md
+++ b/README.md
@@ -98,9 +98,10 @@ connector-position-topic source数据处理进度
## 7.启动source connector
+提前创建测试文件~/test/test-source-file.txt,随意写一些内容在里面
```
-curl -X POST -H "Content-Type: application/json"
http://127.0.0.1:8082/connectors/fileSourceConnector -d
'{"connector-class":"org.apache.rocketmq.connect.file.FileSourceConnector","filename":"/Users/duheng/test/file-test.txt","connect-topicname":"fileTopic"}'
+curl -X POST -H "Content-Type: application/json"
http://127.0.0.1:8082/connectors/fileSourceConnector -d
'{"connector-class":"org.apache.rocketmq.connect.file.FileSourceConnector","filename":"~/test/test-source-file.txt","connect-topicname":"fileTopic"}'
```
看到一下日志说明file source connector启动成功了