You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "godfrey he (Jira)" <ji...@apache.org> on 2020/04/08 12:04:00 UTC

[jira] [Commented] (FLINK-16533) ExecutionEnvironment supports execution of existing plan

    [ https://issues.apache.org/jira/browse/FLINK-16533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17078217#comment-17078217 ] 

godfrey he commented on FLINK-16533:
------------------------------------

hi [~aljoscha][~kkl0u], I find many sub-classes of {{ExecutionEnvironment}} don't set {{execution.target}} property.  such as: {{CollectionEnvironment}}, {{TestEnvironment}}. Those two classes are used for testing.
We should check all {{ExecutionEnvironment}}s and {{StreamExecutionEnvironment}}s and add {{execution.target}} property. After that we can safely execute job through  {{PipelineExecutor}}. What do you think ?

> ExecutionEnvironment supports execution of existing plan
> --------------------------------------------------------
>
>                 Key: FLINK-16533
>                 URL: https://issues.apache.org/jira/browse/FLINK-16533
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Client / Job Submission
>            Reporter: godfrey he
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.11.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently, {{ExecutionEnvironment}} only supports executing the plan generated by self.
> FLIP-84 proposes {{TableEnvironment}} can only trigger the table program and the {{StreamExecutionEnvironment}}/{{ExecutionEnvironment}} can only trigger {{DataStream}}/{{DataSet}} program. This requires that {{ExecutionEnvironment}} can execute the plan generated by {{TableEnvironment}}. We propose to add two methods in  {{ExecutionEnvironment}}: (which are similar to {{StreamExecutionEnvironment}}#execute(StreamGraph) and {{StreamExecutionEnvironment}}#executeAsync(StreamGraph))
> {code:java}
> public class ExecutionEnvironment {
>     @Internal
>     public JobExecutionResult execute(Plan plan) throws Exception {
>     .....
>     }
>     @Internal
>     public JobClient executeAsync(Plan plan) throws Exception {
>     .....
>     }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)