[
https://issues.apache.org/jira/browse/SPARK-17002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Owen resolved SPARK-17002.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.1.0
Issue resolved by pull request 14674
[https://github.com/apache/spark/pull/14674]
> Document that spark.ssl.protocol. is required for SSL
> -----------------------------------------------------
>
> Key: SPARK-17002
> URL: https://issues.apache.org/jira/browse/SPARK-17002
> Project: Spark
> Issue Type: Improvement
> Components: Documentation, Spark Core
> Affects Versions: 1.6.2, 2.0.0
> Reporter: Michael Gummelt
> Priority: Minor
> Fix For: 2.1.0
>
>
> cc [~jlewandowski]
> I was trying to start the Spark master. When setting
> {{spark.ssl.enabled=true}}, but failing to set {{spark.ssl.protocol}}, I get
> this none-too-helpful error message:
> {code}
> 16/08/10 15:17:50 INFO SecurityManager: SecurityManager: authentication
> disabled; ui acls disabled; users with view permissions: Set(mgummelt); users
> with modify permissions: Set(mgummelt)
> 16/08/10 15:17:50 WARN SecurityManager: Using 'accept-all' trust manager for
> SSL connections.
> Exception in thread "main" java.security.KeyManagementException: Default
> SSLContext is initialized automatically
> at
> sun.security.ssl.SSLContextImpl$DefaultSSLContext.engineInit(SSLContextImpl.java:749)
> at javax.net.ssl.SSLContext.init(SSLContext.java:282)
> at org.apache.spark.SecurityManager.<init>(SecurityManager.scala:284)
> at
> org.apache.spark.deploy.master.Master$.startRpcEnvAndEndpoint(Master.scala:1121)
> at org.apache.spark.deploy.master.Master$.main(Master.scala:1106)
> at org.apache.spark.deploy.master.Master.main(Master.scala)
> {code}
> We should document that {{spark.ssl.protocol}} is required, and throw a more
> helpful error message when it isn't set. In fact, we should remove the
> `getOrElse` here:
> https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/SecurityManager.scala#L285,
> since the following line fails when the protocol is set to "Default"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]