[
https://issues.apache.org/jira/browse/FLINK-17775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17112176#comment-17112176
]
Nikola commented on FLINK-17775:
--------------------------------
Hi [~aljoscha], that seems to be my bad. I can indeed remove the last
{{env.execute()}} and my job will work just fine. I am using flink in docker
which we start through {{bin/taskmanager.sh}} and {{bin/jobmanager.sh}}
However, regarding the issue it seems there is no way around it at the moment
as the code you point to does not take anyhow a job name in consideration.
On the other hand, When I am using both .collect() and env.execute() you said
my job will run twice. However, I cannot see my job running twice (or 2 jobs
running). I can see only one.
> 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)