[
https://issues.apache.org/jira/browse/SPARK-27812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17303304#comment-17303304
]
Sergey edited comment on SPARK-27812 at 3/17/21, 11:18 AM:
-----------------------------------------------------------
It seems, I have reproduced this bug in Spark 3.1.1.
If I don't call sparkContext.stop() explicitly, then a Spark driver process
doesn't terminate even after its Main method has been completed.
There are two non-daemon threads, if I don't call sparkContext.stop():
{code:java}
Thread[OkHttp kubernetes.default.svc,5,main]
Thread[OkHttp kubernetes.default.svc Writer,5,main]{code}
It looks like, it prevents the driver jvm process from terminating.
Spark app is started on Amazon EKS (Kubernetes version - 1.17) by
_spark-on-k8s-operator: v1beta2-1.2.0-3.0.0_
[(https://github.com/GoogleCloudPlatform/spark-on-k8s-operator)|https://github.com/GoogleCloudPlatform/spark-on-k8s-operator]
Spark docker image is built from the official release of spark-3.1.1 hadoop3.2.
was (Author: kotlov):
It seems, I have reproduced this bug in Spark 3.1.1.
If I don't call sparkContext.stop() explicitly, then a Spark driver process
doesn't terminate even after its Main method has been completed.
There are two non-daemon threads, if I don't call sparkContext.stop():
{code:java}
Thread[OkHttp kubernetes.default.svc,5,main]
Thread[OkHttp kubernetes.default.svc Writer,5,main]{code}
It looks like, it prevents the driver jvm process from terminating.
Spark app is started on Amazon EKS (Kubernetes version - 1.17) by
[spark-on-k8s-operator:
v1beta2-1.2.0-3.0.0|[https://github.com/GoogleCloudPlatform/spark-on-k8s-operator].]
Spark docker image is built from the official release of spark-3.1.1 hadoop3.2.
> kubernetes client import non-daemon thread which block jvm exit.
> ----------------------------------------------------------------
>
> Key: SPARK-27812
> URL: https://issues.apache.org/jira/browse/SPARK-27812
> Project: Spark
> Issue Type: Bug
> Components: Kubernetes, Spark Core
> Affects Versions: 2.4.3, 2.4.4
> Reporter: Henry Yu
> Assignee: Igor Calabria
> Priority: Major
> Fix For: 2.4.5, 3.0.0
>
>
> I try spark-submit to k8s with cluster mode. Driver pod failed to exit with
> An Okhttp Websocket Non-Daemon Thread.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]