Closed pan3793 closed 1 year ago
cc @bowenliang123 @zhouyifan279
Let's register a shutdown hook with org.apache.spark.util.ShutdownHookManager
to properly cleanup the plugin by calling RangerBasePlugin.cleanup()
.
Among plugins provided in Ranger, plugins for kafka、hbase、solr does manually clean up but the one for hive doesn't.
Code of Conduct
Search before asking
Describe the bug
It was reported by some users that when using the Spark Ranger plugin (Kyuubi authz module) w/ Kyuubi, the Driver JVM process can not exit even after
SparkSQLEngine
andSparkContext
was stopped.After some investigation by
jstack
, I found the JVM hang because of some non-daemon threads opened by Ranger Audit plugins, i.e. ES, SolrSee RANGER-3787 for details about issue related to ES audit plugin
Affects Version(s)
master/1.6
Kyuubi Server Log Output
No response
Kyuubi Engine Log Output
As you can see, the
SparkSQLEngine
andSparkContext
was stopped, but the JVM process is still alive.Kyuubi Server Configurations
No response
Kyuubi Engine Configurations
No response
Additional context
The ranger audit configuration
The stucked Driver JVM jstack output
The
zkConnectionManagerCallback-*
is actually created by Solr Zk clientAre you willing to submit PR?