Apache Cassandra driver versions greater than 4.0 are required due to couple of issues listed below.
1. Driver tries to reconnect to endpoint based on resolved IP and not on original DNS name.
In containers, where restarts may get a new IP address, versions prior to 4.0 results in "cannot connect" errors since it is trying to connect to stale/prior IP address. Reference driver issues:
2. Beam does not seem to currently support providing custom ssl options (to supply dedicated java truststore and keystore). The only option seems to use default system properties as listed below.
If you're using client authentication:
Cassandra driver 3.x provides programmatic option using withSSL() API which I think is not supported in beam currently.
Cluster cluster = Cluster.builder().addContactPoint("127.0.0.1").withSSL(sslOptions).build();
Due to issue 1, it may be wise to upgrade cassandra driver to 4.x (as there is an interface breaking change in driver) and add custom ssl support as stated by driver spec.