You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Vlad <qa...@yahoo.com> on 2017/04/16 16:18:57 UTC

Spark node: use 127.0.0.1 for connection to Cassandra

Hi All,
I have Cassandra with Spark on node 10.0.0.1

On other server I run 
./spark-shell --master spark://10.0.0.1:7077and then set 
val conf = new SparkConf(true).set("spark.cassandra.connection.host", "10.0.0.1")
It works, but I see in tcpdump that Spark node connects to Cassandra with address 10.0.0.1How can I cause node to use 127.0.0.1 (Cassandra listens on 0.0.0.0:9042) ?

Thanks.