java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class

Stack Overflow | user2782405 | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Error occurred when retrieving data from cassandra in spark shell

    Stack Overflow | 6 months ago | user2782405
    java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      scala/collection/GenTraversableOnce$class

      at com.datastax.spark.connector.util.CountingIterator.<init>()
    2. spark-cassandra-connector
      CassandraTableScanRDD.compute
      1. com.datastax.spark.connector.util.CountingIterator.<init>(CountingIterator.scala:4)
      2. com.datastax.spark.connector.rdd.CassandraTableScanRDD.compute(CassandraTableScanRDD.scala:336)
      2 frames
    3. Spark
      Executor$TaskRunner.run
      1. org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:319)
      2. org.apache.spark.rdd.RDD.iterator(RDD.scala:283)
      3. org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:70)
      4. org.apache.spark.scheduler.Task.run(Task.scala:85)
      5. org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:274)
      5 frames
    4. Java RT
      ThreadPoolExecutor.runWorker
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      1 frame