[SPARK-3571] Spark standalone cluster mode doesn't work.

I think, this issue is caused by #1106