java.util.NoSuchElementException: spark.cassandra.connection.host sbt.ForkMain$ForkError: spark.cassandra.connection.host


Solutions on the web

Solution icon of github
via GitHub by allixender
, 9 months ago
spark.cassandra.connection.host sbt.ForkMain$ForkError: spark.cassandra.connection.host

Stack trace

java.util.NoSuchElementException: spark.cassandra.connection.host
sbt.ForkMain$ForkError: spark.cassandra.connection.host
	at org.apache.spark.SparkConf$$anonfun$get$1.apply(SparkConf.scala:167)
	at org.apache.spark.SparkConf$$anonfun$get$1.apply(SparkConf.scala:167)
	at scala.Option.getOrElse(Option.scala:120)
	at org.apache.spark.SparkConf.get(SparkConf.scala:167)
	at geotrellis.spark.io.cassandra.CassandraAttributeStoreSpec$$anonfun$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(CassandraAttributeStoreSpec.scala:39)
	at geotrellis.spark.OnlyIfCanRunSpark$class.ifCanRunSpark(OnlyIfCanRunSpark.scala:46)
	at geotrellis.spark.io.cassandra.CassandraAttributeStoreSpec.ifCanRunSpark(CassandraAttributeStoreSpec.scala:22)
	at geotrellis.spark.io.cassandra.CassandraAttributeStoreSpec$$anonfun$1.apply$mcV$sp(CassandraAttributeStoreSpec.scala:31)
	at org.scalatest.SuperEngine.registerNestedBranch(Engine.scala:613)
	at org.scalatest.FunSpecLike$class.describe(FunSpecLike.scala:357)
	at org.scalatest.FunSpec.describe(FunSpec.scala:1626)
	at geotrellis.spark.io.cassandra.CassandraAttributeStoreSpec.<init>(CassandraAttributeStoreSpec.scala:30)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at java.lang.Class.newInstance(Class.java:383)
	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:641)
	at sbt.ForkMain$Run$2.call(ForkMain.java:294)
	at sbt.ForkMain$Run$2.call(ForkMain.java:284)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.