[Experience Sharing] Enabling Authentication for TiSpark: SparkSession Stops but JVM Does Not Exit

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 【经验分享】tispark 开启权限认证,sparksession停止了但是jvm不退出

| username: wfxxh

After enabling permission authentication in TiSpark, the JVM does not exit after stopping the SparkSession

Reason:


* image

Solution:


Use a custom thread factory and set it to daemon threads.

| username: Billmay表妹 | Original post link

What version is TiSpark?

| username: wfxxh | Original post link

All the above versions support permissions.