1. Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/spark/package
Details:
Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/spark/package$
at com.tr.bimbqm.report.LoadAggrIns2ES$.main(loadAggrIns2ES.scala:96)
at com.tr.bimbqm.report.LoadAggrIns2ES.main(loadAggrIns2ES.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:672)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.spark.package$
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 11 more
Reason: Lost org/elasticsearch/elasticsearch-hadoop/5.4.1/elasticsearch-hadoop-5.4.1.jar
Solutions: spark-submit --master local[1] --queue root.ecpcibimbqm --class com.tr.bimbqm.report.LoadAggrIns2ES
--jars /hadoop/user/m0163276/.m2/repository/org/elasticsearch/elasticsearch-hadoop/5.4.1/elasticsearch-hadoop-5.4.1.jar,/hadoop/user/m0163276/jars/bimbqm-common-0.0.1-SNAPSHOT.jar /hadoop/user/m0163276/scripts/loadAggrIns2ES/targ
阅读(564) | 评论(0) | 转发(0) |