Spark-cassandra-connector native protocol version

94 Views Asked by At

Is there any setting for native protocol version in Spark Cassandra connector or it by default communicate the best version (V4 or V5) at the connection time. I am seeing a dip in my Cassandra performance dip for reports generated via spark while running on Cassandra 4 as compared to running same setup with Cassandra 3.11.x. So was apprehensive that what could cause it. So wanted to know is there any property like native protocol version which can be set to see performance.

1

There are 1 best solutions below

0
Alex Ott On BEST ANSWER

Spark Cassandra Connector relies on the Java driver to negotiate the best supported protocol version. But you can also enforce a specific version by using a custom driver configuration profile - specify its name via spark.cassandra.connection.config.profile.path configuration. See the Spark Cassandra Connector documentation for specifics on how to specify a file name.