Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-24529

flink sql job cannot use custom job name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 1.14.0
    • 1.14.3
    • Table SQL / API
    • None

    Description

      In the 1.14.0 branch, I set the configuration of StreamTableEnvironment as follows:

      Configuration configuration = tEnv.getConfig().getConfiguration();
      configuration.setString(PipelineOptions.NAME, jobName);

      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:

      String jobName = getJobName("insert-into_" + String.join(",",sinkIdentifierNames));
      
      private String getJobName(String defaultJobName) { 
        return tableConfig.getConfiguration().getString(PipelineOptions.NAME,defaultJobName); 
      } 
      

      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.

       

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            simen simenliuxing
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: