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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]