Spark error- java.lang.IllegalStateException: Expected SaslMessage, received something else (maybe your client does not have SASL enabled?)
Exception Trace -
23/09/08 19:37:39 dispatcher-event-loop-0-dispatcher-event-loop-0id ERROR YarnClusterScheduler: Lost executor 1 on Unable to create executor due to Unable to register with external shuffle server due to : java.lang.IllegalStateException: Expected SaslMessage, received something else (maybe your client does not have SASL enabled?)
at org.apache.spark.network.sasl.SaslMessage.decode(SaslMessage.java:69) at org.apache.spark.network.sasl.SaslRpcHandler.doAuthChallenge(SaslRpcHandler.java:80) at org.apache.spark.network.server.AbstractAuthRpcHandler.receive(AbstractAuthRpcHandler.java:59) at org.apache.spark.network.server.TransportRequestHandler.processRpcRequest(TransportRequestHandler.java:180)Reason -
This error was coming in our case when -
- spark.shuffle.service.enabled=true
- spark.dynamicAllocation.enabled=true
Solution -
- Set following false -
- spark.shuffle.service.enabled=false
- spark.dynamicAllocation.enabled=false
- Or, Set following property -
- spark.authenticate=true
Additionally you can try and set following properties as well -
- spark.network.crypto.enabled true
- spark.network.crypto.saslFallback true
spark.network.sasl.serverAlwaysEncrypt true
spark.authenticate.enableSaslEncryption true
Comments
Post a Comment