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

Samebug tips

  1. ,

    In Scala, don’t use the get method with Option to access a result. Use getOrElse, a match expression, or foreach instead.

java.util.NoSuchElementException: None.get at scala.None$.get(Option.scala:313) at scala.None$.get(Option.scala:311) at com.datastax.spark.connector.DataFrameFunctions$$anonfun$3.apply(DataFrameFunctions.scala:36) at com.datastax.spark.connector.DataFrameFunctions$$anonfun$3.apply(DataFrameFunctions.scala:36) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at scala.collection.immutable.List.foreach(List.scala:318) at scala.collection.TraversableLike$class.map(TraversableLike.scala:244) at scala.collection.AbstractTraversable.map(Traversable.scala:105) at com.datastax.spark.connector.DataFrameFunctions.createCassandraTable(DataFrameFunctions.scala:36)