java.util.NoSuchElementException

key not found: people_cpy

Samebug tips1

Check if the field you try to read really exists in the database. If it is optional, just use com.mongodb.casbah.commons.MongoDBObject#getAs


Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web765

  • via DataStax JIRA by John Hoyland, 1 year ago
    key not found: people_cpy
  • via DataStax JIRA by John Hoyland, 1 year ago
    key not found: people_cpy
  • key not found: #STUCK
  • Stack trace

    • java.util.NoSuchElementException: key not found: people_cpy at scala.collection.MapLike$class.default(MapLike.scala:228) at scala.collection.AbstractMap.default(Map.scala:58) at scala.collection.MapLike$class.apply(MapLike.scala:141) at scala.collection.AbstractMap.apply(Map.scala:58) at org.apache.spark.sql.cassandra.CassandraSourceRelation.<init>(CassandraSourceRelation.scala:40) at org.apache.spark.sql.cassandra.CassandraSourceRelation$.apply(CassandraSourceRelation.scala:168) at org.apache.spark.sql.cassandra.DefaultSource.createRelation(DefaultSource.scala:84) at org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:240) at org.apache.spark.sql.DataFrame.save(DataFrame.scala:1196)

    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

    Once, 1 week ago
    Unknown user
    Once, 3 months ago
    12 times, 5 months ago
    Unknown user
    3 times, 9 months ago
    Unknown user
    Once, 1 year ago
    13 more bugmates