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



##########
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()` 方法会返回一个执行环境以在集群上执行你的程序。

Review comment:
       I think your translation reads more smoothly. 




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