You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/11/17 05:22:12 UTC

[GitHub] [dolphinscheduler] tangbing2014 commented on issue #12925: Flink SQL org.apache.dolphinscheduler.plugin.task.flink/flink_stream The jar for the task is required

tangbing2014 commented on issue #12925:
URL: https://github.com/apache/dolphinscheduler/issues/12925#issuecomment-1318094607

   ` public void init() {
           logger.info("flink task params {}", taskExecutionContext.getTaskParams());
   
           flinkParameters = JSONUtils.parseObject(taskExecutionContext.getTaskParams(), FlinkParameters.class);
   
          if (flinkParameters == null || !flinkParameters.checkParameters()) {
               throw new RuntimeException("flink task params is not valid");
           }
           flinkParameters.setQueue(taskExecutionContext.getQueue());
           _setMainJarName();_
   
           FileUtils.generateScriptFile(taskExecutionContext, flinkParameters);
       }`
   
   
   **if i use sql type , 'setMainJarName()' how to get? Code with the following judgment is ok.**
   
    if (flinkParameters.getProgramType() != ProgramType.SQL) {
          setMainJarName();
      } 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org