You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "duzhendi (via GitHub)" <gi...@apache.org> on 2025/02/13 01:38:47 UTC

[PR] [Doc][Improve] support chinese [docs/zh/connector-v2/sink/FtpFile.md] #8497 [seatunnel]

duzhendi opened a new pull request, #8661:
URL: https://github.com/apache/seatunnel/pull/8661

   <!--
   
   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/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
   
   <!-- Describe the purpose of this pull request. For example: This pull request adds checkstyle plugin.-->
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   <!--
   Note that it means *any* user-facing change including all aspects such as the documentation fix.
   If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
   If possible, please also clarify if this is a user-facing change compared to the released SeaTunnel versions or within the unreleased branches such as dev.
   If no, write 'No'.
   If you are adding/modifying connector documents, please follow our new specifications: https://github.com/apache/seatunnel/issues/4544.
   -->
   
   
   ### How was this patch tested?
   
   <!--
   If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
   If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
   If tests were not added, please describe why they were not added and/or why it was difficult to add.
   If you are adding E2E test cases, maybe refer to https://github.com/apache/seatunnel/blob/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-cdc-mysql-e2e/src/test/resources/mysqlcdc_to_mysql.conf, here is a good example.
   -->
   
   
   ### Check list
   
   * [ ] If any new Jar binary package adding in your PR, please add License Notice according
     [New License Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/contribution/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
   * [ ] If you are contributing the connector code, please check that the following files are updated:
     1. Update [plugin-mapping.properties](https://github.com/apache/seatunnel/blob/dev/plugin-mapping.properties) and add new connector information in it
     2. Update the pom file of [seatunnel-dist](https://github.com/apache/seatunnel/blob/dev/seatunnel-dist/pom.xml)
     3. Add ci label in [label-scope-conf](https://github.com/apache/seatunnel/blob/dev/.github/workflows/labeler/label-scope-conf.yml)
     4. Add e2e testcase in [seatunnel-e2e](https://github.com/apache/seatunnel/tree/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/)
     5. Update connector [plugin_config](https://github.com/apache/seatunnel/blob/dev/config/plugin_config)
   * [ ] Update the [`release-note`](https://github.com/apache/seatunnel/blob/dev/release-note.md).


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


Re: [PR] [Doc][Improve] support chinese [docs/zh/connector-v2/sink/FtpFile.md] #8497 [seatunnel]

Posted by "liunaijie (via GitHub)" <gi...@apache.org>.
liunaijie commented on code in PR #8661:
URL: https://github.com/apache/seatunnel/pull/8661#discussion_r1955443686


##########
docs/zh/connector-v2/sink/FtpFile.md:
##########
@@ -0,0 +1,361 @@
+# FtpFile
+
+> Ftp文件接收器连接器
+
+## 描述
+
+将数据输出到Ftp。
+
+:::提示
+
+如果你使用spark/flink,为了使用这个连接器,你必须确保你的spark/flilk集群已经集成了hadoop。测试的hadoop版本是2.x。
+
+如果你使用SeaTunnel Engine,当你下载并安装SeaTunnel引擎时,它会自动集成hadoop jar。您可以在${SEATUNNEL_HOME}/lib下检查jar包以确认这一点。
+
+:::
+
+## 主要特性
+
+- [x] [exactly-once](../../concept/connector-v2-features.md)
+
+默认情况下,我们使用2PC commit来确保 `exactly-once`
+
+- [x] file format
+  - [x] text
+  - [x] csv
+  - [x] parquet
+  - [x] orc
+  - [x] json
+  - [x] excel
+  - [x] xml
+  - [x] binary
+
+## 选项
+
+| 名称                                  | 类型    | 需要 | 默认                                    | 描述                                                                                                                                                            |
+|---------------------------------------|---------|----------|--------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| host                                  | string  | 是      | -                                          |                                                                                                                                                                        |
+| port                                  | int     | 是      | -                                          |                                                                                                                                                                        |
+| user                                  | string  | 是      | -                                          |                                                                                                                                                                        |
+| password                              | string  | 是      | -                                          |                                                                                                                                                                        |
+| path                                  | string  | 是      | -                                          |                                                                                                                                                                        |
+| tmp_path                              | string  | 是      | /tmp/seatunnel                             | The result file will write to a tmp path first and then use `mv` to submit tmp dir to target dir. Need a FTP dir.                                                      |

Review Comment:
   We should also translate those word into Chinese.



##########
docs/zh/connector-v2/sink/FtpFile.md:
##########
@@ -0,0 +1,361 @@
+# FtpFile
+
+> Ftp文件接收器连接器
+
+## 描述
+
+将数据输出到Ftp。
+
+:::提示
+
+如果你使用spark/flink,为了使用这个连接器,你必须确保你的spark/flilk集群已经集成了hadoop。测试的hadoop版本是2.x。
+
+如果你使用SeaTunnel Engine,当你下载并安装SeaTunnel引擎时,它会自动集成hadoop jar。您可以在${SEATUNNEL_HOME}/lib下检查jar包以确认这一点。
+
+:::
+
+## 主要特性
+
+- [x] [exactly-once](../../concept/connector-v2-features.md)
+
+默认情况下,我们使用2PC commit来确保 `exactly-once`
+
+- [x] file format
+  - [x] text
+  - [x] csv
+  - [x] parquet
+  - [x] orc
+  - [x] json
+  - [x] excel
+  - [x] xml
+  - [x] binary
+
+## 选项
+
+| 名称                                  | 类型    | 需要 | 默认                                    | 描述                                                                                                                                                            |
+|---------------------------------------|---------|----------|--------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| host                                  | string  | 是      | -                                          |                                                                                                                                                                        |
+| port                                  | int     | 是      | -                                          |                                                                                                                                                                        |
+| user                                  | string  | 是      | -                                          |                                                                                                                                                                        |
+| password                              | string  | 是      | -                                          |                                                                                                                                                                        |
+| path                                  | string  | 是      | -                                          |                                                                                                                                                                        |
+| tmp_path                              | string  | 是      | /tmp/seatunnel                             | The result file will write to a tmp path first and then use `mv` to submit tmp dir to target dir. Need a FTP dir.                                                      |
+| connection_mode                       | string  | 否       | active_local                               | The target ftp connection mode                                                                                                                                         |
+| custom_filename                       | boolean | 否       | 否                                      | Whether you need custom the filename                                                                                                                                   |
+| file_name_expression                  | string  | 否       | "${transactionId}"                         | Only used when custom_filename is true                                                                                                                                 |
+| filename_time_format                  | string  | 否       | "yyyy.MM.dd"                               | Only used when custom_filename is true                                                                                                                                 |
+| file_format_type                      | string  | 否       | "csv"                                      |                                                                                                                                                                        |
+| field_delimiter                       | string  | 否       | '\001'                                     | Only used when file_format_type is text                                                                                                                                |
+| row_delimiter                         | string  | 否       | "\n"                                       | Only used when file_format_type is text                                                                                                                                |
+| have_partition                        | boolean | 否       | 否                                      | Whether you need processing partitions.                                                                                                                                |
+| partition_by                          | array   | 否       | -                                          | Only used then have_partition is true                                                                                                                                  |
+| partition_dir_expression              | string  | 否       | "${k0}=${v0}/${k1}=${v1}/.../${kn}=${vn}/" | Only used then have_partition is true                                                                                                                                  |
+| is_partition_field_write_in_file      | boolean | 否       | 否                                      | Only used then have_partition is true                                                                                                                                  |
+| sink_columns                          | array   | 否       |                                            | When this parameter is empty, all fields are sink columns                                                                                                              |

Review Comment:
   ditto



##########
docs/zh/connector-v2/sink/FtpFile.md:
##########
@@ -0,0 +1,361 @@
+# FtpFile
+
+> Ftp文件接收器连接器
+
+## 描述
+
+将数据输出到Ftp。
+
+:::提示
+
+如果你使用spark/flink,为了使用这个连接器,你必须确保你的spark/flilk集群已经集成了hadoop。测试的hadoop版本是2.x。
+
+如果你使用SeaTunnel Engine,当你下载并安装SeaTunnel引擎时,它会自动集成hadoop jar。您可以在${SEATUNNEL_HOME}/lib下检查jar包以确认这一点。
+
+:::
+
+## 主要特性
+
+- [x] [exactly-once](../../concept/connector-v2-features.md)
+
+默认情况下,我们使用2PC commit来确保 `exactly-once`
+
+- [x] file format
+  - [x] text
+  - [x] csv
+  - [x] parquet
+  - [x] orc
+  - [x] json
+  - [x] excel
+  - [x] xml
+  - [x] binary
+
+## 选项
+
+| 名称                                  | 类型    | 需要 | 默认                                    | 描述                                                                                                                                                            |
+|---------------------------------------|---------|----------|--------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| host                                  | string  | 是      | -                                          |                                                                                                                                                                        |
+| port                                  | int     | 是      | -                                          |                                                                                                                                                                        |
+| user                                  | string  | 是      | -                                          |                                                                                                                                                                        |
+| password                              | string  | 是      | -                                          |                                                                                                                                                                        |
+| path                                  | string  | 是      | -                                          |                                                                                                                                                                        |
+| tmp_path                              | string  | 是      | /tmp/seatunnel                             | The result file will write to a tmp path first and then use `mv` to submit tmp dir to target dir. Need a FTP dir.                                                      |
+| connection_mode                       | string  | 否       | active_local                               | The target ftp connection mode                                                                                                                                         |
+| custom_filename                       | boolean | 否       | 否                                      | Whether you need custom the filename                                                                                                                                   |
+| file_name_expression                  | string  | 否       | "${transactionId}"                         | Only used when custom_filename is true                                                                                                                                 |
+| filename_time_format                  | string  | 否       | "yyyy.MM.dd"                               | Only used when custom_filename is true                                                                                                                                 |
+| file_format_type                      | string  | 否       | "csv"                                      |                                                                                                                                                                        |
+| field_delimiter                       | string  | 否       | '\001'                                     | Only used when file_format_type is text                                                                                                                                |
+| row_delimiter                         | string  | 否       | "\n"                                       | Only used when file_format_type is text                                                                                                                                |
+| have_partition                        | boolean | 否       | 否                                      | Whether you need processing partitions.                                                                                                                                |
+| partition_by                          | array   | 否       | -                                          | Only used then have_partition is true                                                                                                                                  |
+| partition_dir_expression              | string  | 否       | "${k0}=${v0}/${k1}=${v1}/.../${kn}=${vn}/" | Only used then have_partition is true                                                                                                                                  |
+| is_partition_field_write_in_file      | boolean | 否       | 否                                      | Only used then have_partition is true                                                                                                                                  |
+| sink_columns                          | array   | 否       |                                            | When this parameter is empty, all fields are sink columns                                                                                                              |
+| is_enable_transaction                 | boolean | 否       | true                                       |                                                                                                                                                                        |
+| batch_size                            | int     | 否       | 1000000                                    |                                                                                                                                                                        |
+| compress_codec                        | string  | 否       | none                                       |                                                                                                                                                                        |
+| common-options                        | object  | 否       | -                                          |                                                                                                                                                                        |
+| max_rows_in_memory                    | int     | 否       | -                                          | Only used when file_format_type is excel.                                                                                                                              |
+| sheet_name                            | string  | 否       | Sheet${Random number}                      | Only used when file_format_type is excel.                                                                                                                              |
+| csv_string_quote_mode                 | enum    | 否       | MINIMAL                                    | Only used when file_format is csv.                                                                                                                                     |
+| xml_root_tag                          | string  | 否       | RECORDS                                    | Only used when file_format is xml.                                                                                                                                     |
+| xml_row_tag                           | string  | 否       | RECORD                                     | Only used when file_format is xml.                                                                                                                                     |
+| xml_use_attr_format                   | boolean | 否       | -                                          | Only used when file_format is xml.                                                                                                                                     |
+| single_file_mode                      | boolean | 否       | 否                                      | Each parallelism will only output one file. When this parameter is turned on, batch_size will not take effect. The output file name does not have a file block suffix. |
+| create_empty_file_when_no_data        | boolean | 否       | 否                                      | When there is no data synchronization upstream, the corresponding data files are still generated.                                                                      |

Review Comment:
   ditto



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


Re: [PR] [Doc][Improve] support chinese [docs/zh/connector-v2/sink/FtpFile.md] #8497 [seatunnel]

Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on code in PR #8661:
URL: https://github.com/apache/seatunnel/pull/8661#discussion_r1953665158


##########
docs/zh/connector-v2/sink/FtpFile.md:
##########
@@ -0,0 +1,361 @@
+# FtpFile
+
+> Ftp文件接收器连接器
+
+## 描述
+
+将数据输出到Ftp。
+
+:::提示
+
+如果你使用spark/flink,为了使用这个连接器,你必须确保你的spark/flilk集群已经集成了hadoop。测试的hadoop版本是2.x。
+
+如果你使用SeaTunnel Engine,当你下载并安装SeaTunnel引擎时,它会自动集成hadoop jar。您可以在${SEATUNNEL_HOME}/lib下检查jar包以确认这一点。
+
+:::
+
+## 主要特性
+
+- [x] [exactly-once](../../concept/connector-v2-features.md)
+
+默认情况下,我们使用2PC commit来确保 `exactly-once`
+
+- [x] file format
+  - [x] text
+  - [x] csv
+  - [x] parquet
+  - [x] orc
+  - [x] json
+  - [x] excel
+  - [x] xml
+  - [x] binary
+
+## 选项
+
+| Name                                  | Type    | Required | Default                                    | Description                                                                                                                                                            |
+|---------------------------------------|---------|----------|--------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| host                                  | string  | yes      | -                                          |                                                                                                                                                                        |
+| port                                  | int     | yes      | -                                          |                                                                                                                                                                        |
+| user                                  | string  | yes      | -                                          |                                                                                                                                                                        |
+| password                              | string  | yes      | -                                          |                                                                                                                                                                        |
+| path                                  | string  | yes      | -                                          |                                                                                                                                                                        |
+| tmp_path                              | string  | yes      | /tmp/seatunnel                             | The result file will write to a tmp path first and then use `mv` to submit tmp dir to target dir. Need a FTP dir.                                                      |
+| connection_mode                       | string  | no       | active_local                               | The target ftp connection mode                                                                                                                                         |
+| custom_filename                       | boolean | no       | false                                      | Whether you need custom the filename                                                                                                                                   |
+| file_name_expression                  | string  | no       | "${transactionId}"                         | Only used when custom_filename is true                                                                                                                                 |
+| filename_time_format                  | string  | no       | "yyyy.MM.dd"                               | Only used when custom_filename is true                                                                                                                                 |
+| file_format_type                      | string  | no       | "csv"                                      |                                                                                                                                                                        |
+| field_delimiter                       | string  | no       | '\001'                                     | Only used when file_format_type is text                                                                                                                                |
+| row_delimiter                         | string  | no       | "\n"                                       | Only used when file_format_type is text                                                                                                                                |
+| have_partition                        | boolean | no       | false                                      | Whether you need processing partitions.                                                                                                                                |
+| partition_by                          | array   | no       | -                                          | Only used then have_partition is true                                                                                                                                  |
+| partition_dir_expression              | string  | no       | "${k0}=${v0}/${k1}=${v1}/.../${kn}=${vn}/" | Only used then have_partition is true                                                                                                                                  |
+| is_partition_field_write_in_file      | boolean | no       | false                                      | Only used then have_partition is true                                                                                                                                  |
+| sink_columns                          | array   | no       |                                            | When this parameter is empty, all fields are sink columns                                                                                                              |
+| is_enable_transaction                 | boolean | no       | true                                       |                                                                                                                                                                        |
+| batch_size                            | int     | no       | 1000000                                    |                                                                                                                                                                        |
+| compress_codec                        | string  | no       | none                                       |                                                                                                                                                                        |
+| common-options                        | object  | no       | -                                          |                                                                                                                                                                        |
+| max_rows_in_memory                    | int     | no       | -                                          | Only used when file_format_type is excel.                                                                                                                              |
+| sheet_name                            | string  | no       | Sheet${Random number}                      | Only used when file_format_type is excel.                                                                                                                              |
+| csv_string_quote_mode                 | enum    | no       | MINIMAL                                    | Only used when file_format is csv.                                                                                                                                     |
+| xml_root_tag                          | string  | no       | RECORDS                                    | Only used when file_format is xml.                                                                                                                                     |
+| xml_row_tag                           | string  | no       | RECORD                                     | Only used when file_format is xml.                                                                                                                                     |
+| xml_use_attr_format                   | boolean | no       | -                                          | Only used when file_format is xml.                                                                                                                                     |
+| single_file_mode                      | boolean | no       | false                                      | Each parallelism will only output one file. When this parameter is turned on, batch_size will not take effect. The output file name does not have a file block suffix. |
+| create_empty_file_when_no_data        | boolean | no       | false                                      | When there is no data synchronization upstream, the corresponding data files are still generated.                                                                      |
+| parquet_avro_write_timestamp_as_int96 | boolean | no       | false                                      | Only used when file_format is parquet.                                                                                                                                 |
+| parquet_avro_write_fixed_as_int96     | array   | no       | -                                          | Only used when file_format is parquet.                                                                                                                                 |
+| enable_header_write                   | boolean | no       | false                                      | Only used when file_format_type is text,csv.<br/> false:don't write header,true:write header.                                                                          |
+| encoding                              | string  | no       | "UTF-8"                                    | Only used when file_format_type is json,text,csv,xml.                                                                                                                  |
+| schema_save_mode                      | string  | no       | CREATE_SCHEMA_WHEN_NOT_EXIST               | Existing dir processing method                                                                                                                                         |
+| data_save_mode                        | string  | no       | APPEND_DATA                                | Existing data processing method                                                                                                                                        |
+

Review Comment:
   Good job.
   Please translate the word `yes` or `no` into Chinese `是` or `否` in this table.



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


Re: [PR] [Doc][Improve] support chinese [docs/zh/connector-v2/sink/FtpFile.md] #8497 [seatunnel]

Posted by "duzhendi (via GitHub)" <gi...@apache.org>.
duzhendi closed pull request #8661: [Doc][Improve] support chinese [docs/zh/connector-v2/sink/FtpFile.md] #8497
URL: https://github.com/apache/seatunnel/pull/8661


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