New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/spark/package$ #295
Comments
@lairdnote Hi, based on the stacktrace, it looks like you don't have es-hadoop in the runtime classpath. In other words, es-hadoop has not been deployed through-out the nodes where your spark code is running (NoClassDefFound means the class definition has not been found). If you need help, I recommend reaching out to the mailing list. |
Thanks you . |
Hi @costin, I got the same problem using elasticsearch.spark. It seems that the jar elasticsearch-spark_2.10_Beta4 includes both es hadoop and es spark. Also, the cause of my problem is due to the call of rdd.saveToEs() Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/spark/package$ Could you please have look at the problem? Thanks, |
@liusztc09 es-hadoop is not part of the classpath. This is not a bug but a configuration issue on your side. This has been explained in the bug above (closed and marked as invalid) as well as the fact that this is an issue tracker and for questions and such you should try the |
@costin Thanks a lot for the explanation. |
Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/spark/package$
at spark.c4hcdn.KafkaNetWork$.main(KafkaNetWork.scala:52)
at spark.c4hcdn.KafkaNetWork.main(KafkaNetWork.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.spark.deploy.SparkSubmit$.launch(SparkSubmit.scala:303)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:55)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.spark.package$
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 9 more
where are error?
The text was updated successfully, but these errors were encountered: