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
Failed to prepare statement INSERT INTO "cassandrasink"."transaction" ("event_id", "isin", "security_type", "security_name", "date", "time", "price", "currency", "user_id", "quantity", "amount", "session_id") VALUES (:"event_id", :"isin
via apache.org by Unknown author, 2 years ago
Failed to prepare statement INSERT INTO "cassandrasink"."transaction" ("event_id", "isin", "security_type", "security_name", "date", "time", "price", "currency", "user_id", "quantity", "amount", "session_id") VALUES (:"event_id", :"isin
via Stack Overflow by lostinplace
, 5 months ago
Failed to prepare statement INSERT INTO "vehicle_data"."vehicle_locations" ("timestamp", "vehicle_id", "lon", "geobin", "lat") VALUES (:"timestamp", :"vehicle_id", :"lon", :"geobin", :"lat"): All host(s) tried for query failed (no host was tried)
via GitHub by bigdraw
, 1 year ago
Failed to prepare statement INSERT INTO "casdemo"."wordcount" ("count", "word") VALUES (:count, :word): All host(s) tried for query failed (no host was tried)
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 undefined.$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 undefined.$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)