linkis icon indicating copy to clipboard operation
linkis copied to clipboard

[Bug] linkis-engineplugin-spark cannot kill task in scala

Open Alexkun opened this issue 3 years ago • 1 comments
trafficstars

Search before asking

  • [X] I searched the issues and found no similar issues.

Linkis Component

linkis-cg-engineConnplugin

What happened + What you expected to happen

When a scala task was canceled, the Spark EngineConn will kill the task on yarn by SparkContext, while the task in scala intp was left.

Relevent platform

CentOS 7

Reproduction script

  1. Submit a scala task, the contents are as bellow: `import org.slf4j.LoggerFactory import org.apache.linkis.common.utils.Utils

val logger = LoggerFactory.getLogger(getClass)

var count = 0 while (count < 100) { logger.warn(s"count = ${count}") count = count + 1 Thread.sleep(5000) }`

  1. When an EngineConn was set up, kill the task
  2. The task state will change into Canceled. Open the log of the EngineConn, and you will find that the scala into is still running.

Anything else

No response

Are you willing to submit a PR?

  • [ ] Yes I am willing to submit a PR!

Alexkun avatar Jul 28 '22 08:07 Alexkun

:blush: Welcome to the Apache Linkis (incubating) community!! We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context. We will be here shortly.

If you are interested in contributing to our website project, please let us know! You can check out our contributing guide on :point_right: How to Participate in Project Contribution.

WeChat Group:

image Mailing Lists:

name description Subscribe Unsubscribe archive
[email protected] community activity information subscribe unsubscribe archive

github-actions[bot] avatar Jul 28 '22 08:07 github-actions[bot]