You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Marios Trivyzas (Jira)" <ji...@apache.org> on 2021/10/13 09:35:00 UTC
[jira] [Comment Edited] (FLINK-24529) flink sql job cannot use
custom job name
[ https://issues.apache.org/jira/browse/FLINK-24529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17428109#comment-17428109 ]
Marios Trivyzas edited comment on FLINK-24529 at 10/13/21, 9:34 AM:
--------------------------------------------------------------------
The jobname is now set in
*setJobName(StreamGraph streamGraph, @Nullable String defaultJobName)* of *DefaultExecutor* where it checks for the `
PipelineOptions.NAME` and if missing uses the default one.
Let me try to reproduce it though.
was (Author: matriv):
The jobname is now set in `
setJobName(StreamGraph streamGraph, @Nullable String defaultJobName)` of `DefaultExecutor` where it checks for the `
PipelineOptions.NAME` and if missing uses the default one.
Let me try to reproduce it though.
> flink sql job cannot use custom job name
> ----------------------------------------
>
> Key: FLINK-24529
> URL: https://issues.apache.org/jira/browse/FLINK-24529
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / API
> Affects Versions: 1.14.0
> Reporter: simenliuxing
> Priority: Minor
> Fix For: 1.14.1
>
>
> In the 1.14.0 branch, I set the configuration of StreamTableEnvironment as follows:
> {code:java}
> Configuration configuration = tEnv.getConfig().getConfiguration();
> configuration.setString(PipelineOptions.NAME, jobName);{code}
> It is not displayed on flink dashboard but the default insert-into_xxx name,But it is displayed normally in the 1.13.2 branch
> I found that the jobname is set in line 756 of the class TableEnvironmentImpl in the source code of 1.13.2:
> {code:java}
> String jobName = getJobName("insert-into_" + String.join(",",sinkIdentifierNames));
> private String getJobName(String defaultJobName) {
> return tableConfig.getConfiguration().getString(PipelineOptions.NAME,defaultJobName);
> }
> {code}
> But in the 1.14.0 branch, there is no getJobName method. Is there any other setting way here? Or the method should be added.
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)