Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

suujana.naga16_165607 avatar image
suujana.naga16_165607 asked Erick Ramirez answered

Spark application unable to connect to cassandra cluster

Getting below error while connecting to cassandra cluster using python driver.

Error:

Caused by: java.io.IOException: Failed to open native connection to Cassandra at {IP's}:9042

at com.datastax.spark.connector.cql.CassandraConnector$.createSession(CassandraConnector.scala:168)

Please help me in understanding this issue!

spark-cassandra-connector
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

The information you posted is confusing. It looks like you're using the Spark connector but you said you're using the Python driver which is contradictory.

Also, you haven't provided enough information so it makes it difficult to help you. Please edit your original question and provide as much information as possible. Make sure you include the full error message + full stack trace. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.