fengjian1129 commented on code in PR #11871:
URL: https://github.com/apache/dolphinscheduler/pull/11871#discussion_r970735159


##########
dolphinscheduler-task-plugin/dolphinscheduler-task-sql/src/main/java/org/apache/dolphinscheduler/plugin/task/sql/SqlTask.java:
##########
@@ -167,7 +173,13 @@ public void handle(TaskCallBack taskCallBack) throws 
TaskException {
 
     @Override
     public void cancel() throws TaskException {
-
+        String type = sqlParameters.getType();
+        if (DbType.HIVE == DbType.valueOf(type)) {
+            List<String> appIds = 
ProcessUtils.killYarnJob(taskExecutionContext);

Review Comment:
   Can I write a method of kill yarn's job in the [task-api] ? No available 
tool classes found in [task-plugin]



-- 
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