Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via spark-user by Antonio Giambanco, 1 year ago
Job aborted due to stage failure: Task 0 in stage 61.0 failed 1 times, most recent failure: Lost task 0.0 in stage 61.0 (TID 81, localhost): java.io.IOException: Failed to prepare statement INSERT INTO "cassandrasink"."transaction" ("event_id
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried)	at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:107)	at com.datastax.driver.core.SessionManager.execute(SessionManager.java:538)	at com.datastax.driver.core.SessionManager.prepareAsync(SessionManager.java:124)	at com.datastax.driver.core.AbstractSession.prepareAsync(AbstractSession.java:103)	at com.datastax.driver.core.AbstractSession.prepare(AbstractSession.java:89)	at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at com.datastax.spark.connector.cql.SessionProxy.invoke(SessionProxy.scala:33)	at $Proxy17.prepare(Unknown Source)	at com.datastax.spark.connector.cql.PreparedStatementCache$.prepareStatement(PreparedStatementCache.scala:45)	at com.datastax.spark.connector.cql.SessionProxy.invoke(SessionProxy.scala:28)	at $Proxy17.prepare(Unknown Source)	at com.datastax.spark.connector.writer.TableWriter.com$datastax$spark$connector$writer$TableWriter$$prepareStatement(TableWriter.scala:92)	at com.datastax.spark.connector.writer.TableWriter$$anonfun$write$1.apply(TableWriter.scala:122)	at com.datastax.spark.connector.writer.TableWriter$$anonfun$write$1.apply(TableWriter.scala:120)	at com.datastax.spark.connector.cql.CassandraConnector$$anonfun$withSessionDo$1.apply(CassandraConnector.scala:100)	at com.datastax.spark.connector.cql.CassandraConnector$$anonfun$withSessionDo$1.apply(CassandraConnector.scala:99)	at com.datastax.spark.connector.cql.CassandraConnector.closeResourceAfterUse(CassandraConnector.scala:151)	at com.datastax.spark.connector.cql.CassandraConnector.withSessionDo(CassandraConnector.scala:99)	at com.datastax.spark.connector.writer.TableWriter.write(TableWriter.scala:120)	at com.datastax.spark.connector.RDDFunctions$$anonfun$saveToCassandra$1.apply(RDDFunctions.scala:36)	at com.datastax.spark.connector.RDDFunctions$$anonfun$saveToCassandra$1.apply(RDDFunctions.scala:36)	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:61)	at org.apache.spark.scheduler.Task.run(Task.scala:64)	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:203)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)	at java.lang.Thread.run(Thread.java:722)