You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/01/20 06:25:37 UTC

[GitHub] [incubator-seatunnel] wuchunfu commented on a change in pull request #1105: [Feature][Plugin] Add seatunnel-connector-spark-sink-mongodb

wuchunfu commented on a change in pull request #1105:
URL: https://github.com/apache/incubator-seatunnel/pull/1105#discussion_r788386603



##########
File path: docs/en/spark/configuration/sink-plugins/MongoDB.md
##########
@@ -0,0 +1,41 @@
+# Sink plugin : MongoDB [Spark]
+
+## Description
+
+Write data to `MongoDB`
+
+## Options
+
+| name                   | type   | required | default value |
+| ---------------------- | ------ | -------- | ------------- |
+| writeconfig.uri        | string | yes      | -             |
+| writeconfig.database   | string | yes      | -             |
+| writeconfig.collection | string | yes      | -             |
+| common-options         | string | no       |               |
+
+### writeconfig.uri [string]
+
+uri to write to mongoDB
+
+### writeconfig.database [string]
+
+database to write to mongoDB
+
+### readconfig.collection [string]
+
+collection to write to mongoDB
+
+### common options [string]
+
+Sink plugin common parameters, please refer to [Sink Plugin](./sink-plugin.md) for details
+
+## Examples
+
+```bash
+mongodb {
+    writeconfig.uri = "mongodb://username:password@127.0.0.1:27017/test_db"
+    writeconfig.database = "test_db"
+    writeconfig.collection = "test_collection"
+    result_table_name = "mongodb_result_table"

Review comment:
       ok, I will fix it.




-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org