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

Aljoscha Krettek commented on FLINK-17775:
------------------------------------------

Indeed, there is currently no way of setting a Job name when using 
{{collect()}}.

You job is not executed twice because of how both Flink Web UI submission and 
the Docker entrypoints have worked for quite a while now: Inside the 
{{execute()}} call we throw an exception and catch it in the surrounding code 
to get the job out from a program. You can see this here, for example: 
https://github.com/apache/flink/blob/release-1.10/flink-clients/src/main/java/org/apache/flink/client/program/OptimizerPlanEnvironment.java.
  This is changed with the implementation of FLINK-16654.

> Cannot set batch job name when using collect
> --------------------------------------------
>
>                 Key: FLINK-17775
>                 URL: https://issues.apache.org/jira/browse/FLINK-17775
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / Configuration
>    Affects Versions: 1.8.3, 1.9.3, 1.10.1
>            Reporter: Nikola
>            Priority: Critical
>
> We have a batch job in the likes of this:
>  
> {code:java}
> ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
> DataSet<Row> dataSet = getDataSet();
> dataSet
>  .sortPartition(MyRow::getCount, Order.DESCENDING)
>  .setParallelism(1)
>  .flatMap(new MyFlatMap())
>  .collect();
> env.execute("Job at " + Instant.now().toString());
> {code}
> However, the job name in the flink UI is not "Job at <date>" but the default 
> as if I didn't put anything.
>  
> Is there way to have my own flink job name?
>  



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

Reply via email to