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 DataStax JIRA by lustefaniak, 1 year ago
via DataStax JIRA by Lukas Stefaniak, 2 years ago
via DataStax JIRA by mck, 1 year ago
All host(s) tried for query failed (tried: cassandra04.finn.no/152.90.241.27:7615 (com.datastax.driver.core.TransportException: [cassandra04.finn.no/152.90.241.27:7615] Connection has been closed), cassandra05.finn.no/152.90.241.30:7615
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried) at com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:84) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:271) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:185) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:55) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:47) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.datastax.spark.connector.cql.SessionProxy.invoke(SessionProxy.scala:33) at com.sun.proxy.$Proxy4.execute(Unknown Source) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.datastax.spark.connector.cql.SessionProxy.invoke(SessionProxy.scala:33) at com.sun.proxy.$Proxy4.execute(Unknown Source) at buggy.Main$$anonfun$doMappingInPartitions$1$$anonfun$apply$1$$anonfun$apply$2.apply(Main.scala:77) at buggy.Main$$anonfun$doMappingInPartitions$1$$anonfun$apply$1$$anonfun$apply$2.apply(Main.scala:76) at scala.collection.Iterator$$anon$11.next(Iterator.scala:370) at org.apache.spark.util.Utils$.getIteratorSize(Utils.scala:1555) at org.apache.spark.rdd.RDD$$anonfun$count$1.apply(RDD.scala:1121) at org.apache.spark.rdd.RDD$$anonfun$count$1.apply(RDD.scala:1121) at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1848) at org.apache.spark.SparkContext$$anonfun$runJob$5.apply(SparkContext.scala:1848) at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66) at org.apache.spark.scheduler.Task.run(Task.scala:88) at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried) at com.datastax.driver.core.RequestHandler.reportNoMoreHosts(RequestHandler.java:220) at com.datastax.driver.core.RequestHandler.access$900(RequestHandler.java:45) at com.datastax.driver.core.RequestHandler$SpeculativeExecution.sendRequest(RequestHandler.java:279) at com.datastax.driver.core.RequestHandler.startNewExecution(RequestHandler.java:118) at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:94) at com.datastax.driver.core.SessionManager.execute(SessionManager.java:565) at com.datastax.driver.core.SessionManager.executeQuery(SessionManager.java:602) at com.datastax.driver.core.SessionManager.executeAsync(SessionManager.java:98) ... 26 more