java.lang.NoClassDefFoundError

storm/trident/spout/ISpoutPartition

Samebug tips4

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 hello_world_from_pyspark.py {file location}"

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

Solutions on the web43

  • via GitHub by kramasamy
    , 10 months ago
    storm/trident/spout/ISpoutPartition
  • storm/trident/spout/ISpoutPartition
  • via GitHub by khushboo13
    , 10 months ago
    storm/trident/spout/ISpoutPartition
  • Stack trace

    • java.lang.NoClassDefFoundError: storm/trident/spout/ISpoutPartition at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:760) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) at java.net.URLClassLoader.access$100(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:368) at java.net.URLClassLoader$1.run(URLClassLoader.java:362) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:361) 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) at storm.kafka.trident.GlobalPartitionInformation.getOrderedPartitions(GlobalPartitionInformation.java:54) at storm.kafka.KafkaUtils.calculatePartitionsForTask(KafkaUtils.java:215) at storm.kafka.ZkCoordinator.refresh(ZkCoordinator.java:80) at storm.kafka.ZkCoordinator.getMyManagedPartitions(ZkCoordinator.java:69) at storm.kafka.KafkaSpout.nextTuple(KafkaSpout.java:135) at backtype.storm.topology.IRichSpoutDelegate.nextTuple(IRichSpoutDelegate.java:67) at com.twitter.heron.instance.spout.SpoutInstance.produceTuple(SpoutInstance.java:271) at com.twitter.heron.instance.spout.SpoutInstance.access$100(SpoutInstance.java:42) at com.twitter.heron.instance.spout.SpoutInstance$1.run(SpoutInstance.java:176) at com.twitter.heron.common.basics.WakeableLooper.executeTasksOnWakeup(WakeableLooper.java:142) at com.twitter.heron.common.basics.WakeableLooper.runOnce(WakeableLooper.java:74) at com.twitter.heron.common.basics.WakeableLooper.loop(WakeableLooper.java:64) at com.twitter.heron.instance.Slave.run(Slave.java:169) 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: storm.trident.spout.ISpoutPartition 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) ... 28 more

    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 month ago
    Unknown user
    Once, 6 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    1592 more bugmates