RocMarshal commented on a change in pull request #16852:
URL: https://github.com/apache/flink/pull/16852#discussion_r695623245



##########
File path: docs/content.zh/docs/dev/datastream/overview.md
##########
@@ -93,30 +76,19 @@ createLocalEnvironment()
 createRemoteEnvironment(String host, int port, String... jarFiles)
 ```
 
-Typically, you only need to use `getExecutionEnvironment()`, since this will do
-the right thing depending on the context: if you are executing your program
-inside an IDE or as a regular Java program it will create a local environment
-that will execute your program on your local machine. If you created a JAR file
-from your program, and invoke it through the [command line]({{< ref 
"docs/deployment/cli" >}}), the Flink cluster manager will execute your main 
method and
-`getExecutionEnvironment()` will return an execution environment for executing
-your program on a cluster.
+通常,你只需要使用 `getExecutionEnvironment()` 即可,因为该方法会根据上下文做正确的处理:如果在 IDE 
中执行你的程序或作为常规 Java 程序,它将创建一个本地环境,该环境将在你的本地机器上执行你的程序。如果你基于程序创建了一个 JAR 
文件,并通过[命令行]({{< ref "docs/deployment/cli" >}})调用它,Flink 集群管理器将执行程序的 main 方法,同时 
`getExecutionEnvironment()` 方法会返回一个执行环境以在集群上执行你的程序。
 
-For specifying data sources the execution environment has several methods to
-read from files using various methods: you can just read them line by line, as
-CSV files, or using any of the other provided sources. To just read a text file
-as a sequence of lines, you can use:
+为了指定 data sources,执行环境提供了一些方法,支持使用各种方法从文件中读取数据:你可以直接逐行读取数据,像读 CSV 
文件一样,或使用任何第三方提供的 source。如果只是将一个文本文件作为一个行的序列来读,你可以使用:
 
 ```java
 final StreamExecutionEnvironment env = 
StreamExecutionEnvironment.getExecutionEnvironment();
 
 DataStream<String> text = env.readTextFile("file:///path/to/file");
 ```
 
-This will give you a DataStream on which you can then apply transformations to 
create new
-derived DataStreams.
+这将为你生成一个 DataStream,然后你可以在上面应用转换来创建新的派生 DataStream。

Review comment:
       ```suggestion
   这将生成一个 DataStream,然后你可以在上面应用转换(transformation)来创建新的派生 DataStream。
   ```




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