Pushpendra
Pushpendra

Reputation: 55

spark-cassandra connection failed over TLS in Kubernetes

I am getting 'no cipher suits in common' exception when trying to connect spark with cassandra.

Java version : openjdk 8 (build version > 161; unlimited jce)

TLS : 1.2

Cipher Suits: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256


4.1.42.Final.jar:4.1.42.Final] 
        at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:444) ~[netty-all-4.1.42.Final.jar:4.1.42.Final]
        ... 15 common frames omitted

Caused by: javax.net.ssl.SSLHandshakeException: no cipher suites in common
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:198) ~[na:1.8.0_252]
        at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1667) ~[na:1.8.0_252]
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:333) ~[na:1.8.0_252]
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:321) ~[na:1.8.0_252]

Upvotes: 0

Views: 333

Answers (1)

Erick Ramirez
Erick Ramirez

Reputation: 16353

You've posted very limited information so it's difficult to diagnose the problem. The exception indicates that there is no common cipher suites between the Cassandra cluster and the connector.

Check the cipher suites configured on the Cassandra nodes and compare them to the algorithms you've configured on the spark-cassandra-connector. They need to have at least one cipher in common.

You need to make sure that you've configured the connector with the right settings, particularly:

spark.cassandra.connection.ssl.protocol
spark.cassandra.connection.ssl.enabledAlgorithms

See the spark-cassandra-connector SSL Options for details. Cheers!

Upvotes: 1

Related Questions