[SPARK-23476][CORE] Generate secret in local mode when authentication on
## What changes were proposed in this pull request? If spark is run with "spark.authenticate=true", then it will fail to start in local mode. This PR generates secret in local mode when authentication on. ## How was this patch tested? Modified existing unit test. Manually started spark-shell. Author: Gabor Somogyi <gabor.g.somogyi@gmail.com> Closes #20652 from gaborgsomogyi/SPARK-23476.
Showing
- core/src/main/scala/org/apache/spark/SecurityManager.scala 11 additions, 5 deletionscore/src/main/scala/org/apache/spark/SecurityManager.scala
- core/src/test/scala/org/apache/spark/SecurityManagerSuite.scala 34 additions, 16 deletions...rc/test/scala/org/apache/spark/SecurityManagerSuite.scala
- docs/security.md 1 addition, 1 deletiondocs/security.md
Please register or sign in to comment