I'm using databricks notebook and I'm trying to use joinWithCassandraTable to join a RDD with a cassandra table.
The rdd is just a list of primary keys and I connect the cassandra using the CassandraConnector in the following ways:
sparkConf.set("spark.cassandra.connection.localDC", dc)
sparkConf.set("spark.cassandra.connection.host", ip)
sparkConf.set("spark.cassandra.auth.username", cassandraUsername)
sparkConf.set("spark.cassandra.auth.password", cassandraPassword)
val cassandraConnector = CassandraConnector(sparkConf)
However where I was trying to use joinWithCassandraTable, it seems the ip I set in the sparkConf does not take effect, it's still trying to connect to "localhost:9042".
Maybe it's because the joinWithCassandraTable is using the shared spark context in the notebook and any config change in the shared context will not take effect. Please advice on how to let joinWithCassandraTable to use the correct config.