I'm trying to run a demo of Spark Cassandra Kafka integration on an Azure VMs. I did run the demo locally and i got result . When i try to connect to Cassandra VM i got the following error:
All host(s) tried for query failed (tried: /10.1.0.6:9042 (com.datastax.driver.core.exceptions.TransportException: [/10.1.0.6:9042] Cannot connect))
I have 3 (connected) VMs running on CentOs 7, they can ping each other. I have disabled their firewall. I also added inbound ports in the security group.
This may help: when I use nmap to check some specific ports such as 9042 on each machine it shows that it is open locally but when I check other addresses ports it shows that they are closed.
Versions INFO: spark-version : 2.3.1 Scala-version : 2.11.7 java-version : 1.8.0_181 cqlsh: 5.0.1 | cassandra 3.9.0 | CQL spec 3.4.2