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

   > ` 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(); }
   
   
   You do not need to upload jar to use flink sql
   
   <img width="808" alt="image" 
src="https://user-images.githubusercontent.com/100667564/202422990-f325e812-a0ab-4656-8932-bc969ba9dcfe.png";>
   
   
   But you need to use yarn-per-job to submit your flink job
   
   
![image](https://user-images.githubusercontent.com/100667564/202423009-363b6b4d-60f6-4c3b-bf74-d563b043beb3.png)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to