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/09/03 09:02:43 UTC

[GitHub] [incubator-seatunnel] TyrantLucifer opened a new pull request, #2629: [Feature][Connector-V2] Add oss sink

TyrantLucifer opened a new pull request, #2629:
URL: https://github.com/apache/incubator-seatunnel/pull/2629

   <!--
   
   Thank you for contributing to SeaTunnel! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   ## Contribution Checklist
   
     - Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/incubator-seatunnel/issues).
   
     - Name the pull request in the form "[Feature] [component] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
   
     - Minor fixes should be named following this pattern: `[hotfix] [docs] Fix typo in README.md doc`.
   
   -->
   
   ## Purpose of this pull request
   
   #1946 Oss sink connector
   
   <!-- Describe the purpose of this pull request. For example: This pull request adds checkstyle plugin.-->
   
   ## Check list
   
   * [x] Code changed are covered with tests, or it does not need tests for reason:
   * [ ] If any new Jar binary package adding in your PR, please add License Notice according
     [New License Guide](https://github.com/apache/incubator-seatunnel/blob/dev/docs/en/contribution/new-license.md)
   * [x] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs
   


-- 
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


[GitHub] [incubator-seatunnel] hailin0 commented on pull request #2629: [Feature][Connector-V2] Add oss sink

Posted by GitBox <gi...@apache.org>.
hailin0 commented on PR #2629:
URL: https://github.com/apache/incubator-seatunnel/pull/2629#issuecomment-1236780295

   LGTM


-- 
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


[GitHub] [incubator-seatunnel] Hisoka-X merged pull request #2629: [Feature][Connector-V2] Add oss sink

Posted by GitBox <gi...@apache.org>.
Hisoka-X merged PR #2629:
URL: https://github.com/apache/incubator-seatunnel/pull/2629


-- 
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


[GitHub] [incubator-seatunnel] EricJoy2048 commented on a diff in pull request #2629: [Feature][Connector-V2] Add oss sink

Posted by GitBox <gi...@apache.org>.
EricJoy2048 commented on code in PR #2629:
URL: https://github.com/apache/incubator-seatunnel/pull/2629#discussion_r962142661


##########
docs/en/connector-v2/sink/OssFile.md:
##########
@@ -0,0 +1,203 @@
+# OssFile
+
+> Oss file sink connector
+
+## Description
+
+Output data to oss file system.
+
+> Tips: We made some trade-offs in order to support more file types, so we used the HDFS protocol for internal access to OSS and this connector need some hadoop dependencies.
+> It's only support hadoop version **2.9.X+**.
+
+## Options
+
+| name                             | type   | required | default value                                             |
+|----------------------------------| ------ |---------|-----------------------------------------------------------|
+| path                             | string | yes     | -------                                                   |
+| bucket                           | string | yes     | -------                                                   |
+| access_key                       | string | yes     | -------                                                   |
+| access_secret                    | string | yes     | -------                                                   |
+| endpoint                         | string | yes     | -------                                                   |
+| file_name_expression             | string | no      | "${transactionId}"                                        |
+| file_format                      | string | no      | "text"                                                    |
+| filename_time_format             | string | no      | "yyyy.MM.dd"                                              |
+| field_delimiter                  | string | no      | '\001'                                                    |
+| row_delimiter                    | string | no      | "\n"                                                      |
+| partition_by                     | array  | no      | -                                                         |
+| partition_dir_expression         | string | no      | "\${k0}=\${v0}\/\${k1}=\${v1}\/...\/\${kn}=\${vn}\/"      |

Review Comment:
   Replace `"\${k0}=\${v0}\/\${k1}=\${v1}\/...\/\${kn}=\${vn}\/" ` to `"${k0}=${v0}/${k1}=${v1}/.../${kn}=${vn}/" `



##########
docs/en/connector-v2/sink/OssFile.md:
##########
@@ -0,0 +1,203 @@
+# OssFile
+
+> Oss file sink connector
+
+## Description
+
+Output data to oss file system.
+
+> Tips: We made some trade-offs in order to support more file types, so we used the HDFS protocol for internal access to OSS and this connector need some hadoop dependencies.
+> It's only support hadoop version **2.9.X+**.
+
+## Options
+
+| name                             | type   | required | default value                                             |
+|----------------------------------| ------ |---------|-----------------------------------------------------------|
+| path                             | string | yes     | -------                                                   |
+| bucket                           | string | yes     | -------                                                   |
+| access_key                       | string | yes     | -------                                                   |
+| access_secret                    | string | yes     | -------                                                   |
+| endpoint                         | string | yes     | -------                                                   |
+| file_name_expression             | string | no      | "${transactionId}"                                        |
+| file_format                      | string | no      | "text"                                                    |
+| filename_time_format             | string | no      | "yyyy.MM.dd"                                              |
+| field_delimiter                  | string | no      | '\001'                                                    |
+| row_delimiter                    | string | no      | "\n"                                                      |
+| partition_by                     | array  | no      | -                                                         |

Review Comment:
   `-` is the default partition key? Or `-` is seem as `-------` only mean there is no default value?



##########
docs/en/connector-v2/sink/OssFile.md:
##########
@@ -0,0 +1,203 @@
+# OssFile
+
+> Oss file sink connector
+
+## Description

Review Comment:
   Please update this document when https://github.com/apache/incubator-seatunnel/pull/2625 merged



##########
docs/en/connector-v2/source/OssFile.md:
##########
@@ -11,15 +11,15 @@ Read data from aliyun oss file system.
 
 ## Options

Review Comment:
   Please update this document when https://github.com/apache/incubator-seatunnel/pull/2625 merged



-- 
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