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

Stack Overflow | user2782405 | 5 months ago
  1. 0

    Error occurred when retrieving data from cassandra in spark shell

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

    Running following command : df = sqlcontext.read.format("org.apache.spark.sql.cassandra").options(Map( "table" -> "words", "keyspace" -> "test" )).load() df.show() Facing below error : 09:00:40.734 [task-result-getter-0] WARN o.a.spark.scheduler.TaskSetManager - Lost task 0.0 in stage 0.0 (TID 0, localhost): java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class at com.datastax.spark.connector.util.CountingIterator.<init>(CountingIterator.scala:4) at com.datastax.spark.connector.rdd.CassandraTableScanRDD.compute(CassandraTableScanRDD.scala:336) at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:319) at org.apache.spark.rdd.RDD.iterator(RDD.scala:283) at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38) at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:319) at org.apache.spark.rdd.RDD.iterator(RDD.scala:283) at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38) at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:319) at org.apache.spark.rdd.RDD.iterator(RDD.scala:283) at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38) at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:319) at org.apache.spark.rdd.RDD.iterator(RDD.scala:283) at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:70) at org.apache.spark.scheduler.Task.run(Task.scala:86) at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:274) 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: java.lang.ClassNotFoundException: scala.collection.GenTraversableOnce$class at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 19 more

    DataStax JIRA | 1 month ago | Big Bansal
    java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class
  3. 0
    Look for missing class files, specially org.I0Itec.zkclient.IZkStateListener.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    A weird exception using sbt-pack and scala 2.10.ClassNotFoundException: scala.collection.GenTraversableOnce

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

    Spark 2.0 Cassandra Scala Shell Error: java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class

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

  1. rp 5 times, last 7 days ago
  2. johnxfly 4 times, last 1 week ago
  3. jokester 1 times, last 1 week ago
  4. tomthomas 13 times, last 2 weeks ago
  5. andyglick 1 times, last 2 weeks ago
77 more registered users
18 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    scala.collection.GenTraversableOnce$class

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    4 frames
  3. 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
  4. 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
  5. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames