java.lang.RuntimeException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

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}"

tip

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

tip

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.

tip

Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 177#257666119
    via GitHub by clharris
    ,
  • How to integrate java and hive in ubuntu?
    via Stack Overflow by soniya Raj
    ,
    • java.lang.RuntimeException: Fail to construct messaging plugin from plugin backtype.storm.messaging.netty.Context at org.apache.storm.messaging.TransportFactory.makeContext(TransportFactory.java:53)[storm-core-1.0.1.jar:1.0.1] at org.apache.storm.daemon.worker$worker_data.invoke(worker.clj:266)[storm-core-1.0.1.jar:1.0.1] at org.apache.storm.daemon.worker$fn__8450$exec_fn__2461__auto__$reify__8452.run(worker.clj:611)[storm-core-1.0.1.jar:1.0.1] at java.security.AccessController.doPrivileged(Native Method)[?:1.8.0_101] at javax.security.auth.Subject.doAs(Subject.java:422)[?:1.8.0_101] at org.apache.storm.daemon.worker$fn__8450$exec_fn__2461__auto____8451.invoke(worker.clj:609)[storm-core-1.0.1.jar:1.0.1] at clojure.lang.AFn.applyToHelper(AFn.java:178)[clojure-1.7.0.jar:?] at clojure.lang.AFn.applyTo(AFn.java:144)[clojure-1.7.0.jar:?] at clojure.core$apply.invoke(core.clj:630)[clojure-1.7.0.jar:?] at org.apache.storm.daemon.worker$fn__8450$mk_worker__8545.doInvoke(worker.clj:583)[storm-core-1.0.1.jar:1.0.1] at clojure.lang.RestFn.invoke(RestFn.java:512)[clojure-1.7.0.jar:?] at org.apache.storm.daemon.worker$_main.invoke(worker.clj:771)[storm-core-1.0.1.jar:1.0.1] at clojure.lang.AFn.applyToHelper(AFn.java:165)[clojure-1.7.0.jar:?] at clojure.lang.AFn.applyTo(AFn.java:144)[clojure-1.7.0.jar:?] at org.apache.storm.daemon.worker.main(Unknown Source)[storm-core-1.0.1.jar:1.0.1] Caused by: java.lang.ClassNotFoundException: backtype.storm.messaging.netty.Context at java.net.URLClassLoader.findClass(URLClassLoader.java:381)[?:1.8.0_101] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[?:1.8.0_101] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)[?:1.8.0_101] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[?:1.8.0_101] at java.lang.Class.forName0(Native Method)[?:1.8.0_101] at java.lang.Class.forName(Class.java:264)[?:1.8.0_101] at org.apache.storm.messaging.TransportFactory.makeContext(TransportFactory.java:38)[storm-core-1.0.1.jar:1.0.1] ... 14 more

    Users with the same issue

    SteVio1989
    2 times, last one,
    jf-ast
    1 times, last one,
    David
    2 times, last one,
    andyglick
    95 times, last one,
    bandoca
    2 times, last one,
    1579 more bugmates