I was trying to enable SSL in Spark 1.6.2 and got this exception. Not sure if I'm missing something or my keystore / truststore files got bad although keytool showed that both files are fine...
===== *16/09/01 04:01:41 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable* *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)* ===== -- -eric ho