Thesharing commented on a change in pull request #18480:
URL: https://github.com/apache/flink/pull/18480#discussion_r792409930



##########
File path: docs/content.zh/docs/connectors/datastream/formats/hadoop.md
##########
@@ -57,20 +55,13 @@ a `hadoop-client` dependency such as:
 
 ## Using Hadoop InputFormats
 
-To use Hadoop `InputFormats` with Flink the format must first be wrapped
-using either `readHadoopFile` or `createHadoopInput` of the
-`HadoopInputs` utility class.
-The former is used for input formats derived
-from `FileInputFormat` while the latter has to be used for general purpose
-input formats.
-The resulting `InputFormat` can be used to create a data source by using
-`ExecutionEnvironmen#createInput`.
+要将 Hadoop `InputFormats` 与 Flink 一起使用,必须首先使用 `HadoopInputs` 工具类的 
`readHadoopFile` 或 `createHadoopInput` 包装格式。

Review comment:
       ```suggestion
   要在 Flink 中使用 Hadoop `InputFormats`,必须首先使用 `HadoopInputs` 工具类的 
`readHadoopFile` 或 `createHadoopInput` 包装 Input Format。
   ```

##########
File path: docs/content.zh/docs/connectors/datastream/formats/hadoop.md
##########
@@ -57,20 +55,13 @@ a `hadoop-client` dependency such as:
 
 ## Using Hadoop InputFormats
 
-To use Hadoop `InputFormats` with Flink the format must first be wrapped
-using either `readHadoopFile` or `createHadoopInput` of the
-`HadoopInputs` utility class.
-The former is used for input formats derived
-from `FileInputFormat` while the latter has to be used for general purpose
-input formats.
-The resulting `InputFormat` can be used to create a data source by using
-`ExecutionEnvironmen#createInput`.
+要将 Hadoop `InputFormats` 与 Flink 一起使用,必须首先使用 `HadoopInputs` 工具类的 
`readHadoopFile` 或 `createHadoopInput` 包装格式。
+前者用于从 `FileInputFormat` 派生的输入格式,而后者必须用于通用输入格式。

Review comment:
       ```suggestion
   前者用于从 `FileInputFormat` 派生的 Input Format,而后者必须用于通用的 Input Format。
   ```




-- 
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: issues-unsubscr...@flink.apache.org

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


Reply via email to