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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to