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
Unable to save from spark(on mesos) to Elastic search #579
Comments
There should be only one version of the jar, just as the error indicates. We can't reliably tell where a class is loaded from and whether the contain jar (it can just be a folder) is the same version of not as the other one. |
if you notice its actually a single version (elasticsearch-spark_2.10-2.2.0-m1.jar) |
I see there's only one jar but there are two different entries. What's your classpath? |
the spark-mesos executor is running with with following command (checked this from ps -ef | grep java) /usr/java/8/x86_64/jdk/jre/bin/java -cp /opt/apache/spark/latest/conf/:/opt/apache/spark/latest/lib/spark-assembly-1.5.1-hadoop2.6.0.jar:/opt/apache/spark/latest/lib/datanucleus-api-jdo-3.2.6.jar:/opt/apache/spark/latest/lib/datanucleus-core-3.2.10.jar:/opt/apache/spark/latest/lib/datanucleus-rdbms-3.2.9.jar -Xms1024m -Xmx1024m org.apache.spark.executor.MesosExecutorBackend the jar seems to be are added during runtime to the class path by spark executor (from log file) : 15/10/27 14:36:44 INFO Executor: Fetching file:/opt/libs/java/elasticsearch-spark_2.10-2.2.0-m1.jar with timestamp 1445970853892 |
Because there two different entries in the classpath. The fact that they point to the same jar makes this even weirder. Either way, I've improved the check to perform normalization of the URLs which in this case should alleviate the problem. Can you please try the dev builds and report back? |
Pushed in 2.x and master. |
I tried with the build snapshot , it didnt work, still seemed to have failed with similar error. 15/10/28 19:07:05 ERROR Version: Multiple ES-Hadoop versions detected in the classpath; please use only one |
Likely you haven't used the latest snapshot (since the job was stuck). I've manually pushed another one if you want to try it out. Thanks |
Got an error saying 2 version of ES Hadoop lib were found on class path ,
I noticed there are 2 entries, but they still point to the same version.
15/10/26 22:18:06 ERROR Version: Multiple ES-Hadoop versions detected in the classpath; please use only one
jar:file:/tmp/mesos/slaves/3014350f-cd05-44af-9c9c-3974bdeed86e-S1/frameworks/3014350f-cd05-44af-9c9c-3974bdeed86e-0016/executors/3014350f-cd05-44af-9c9c-3974bdeed86e-S1/runs/3697bc14-f0bd-48b9-8599-9683867eec63/elasticsearch-spark_2.10-2.2.0-m1.jar
jar:file:/tmp/mesos/slaves/3014350f-cd05-44af-9c9c-3974bdeed86e-S1/frameworks/3014350f-cd05-44af-9c9c-3974bdeed86e-0016/executors/3014350f-cd05-44af-9c9c-3974bdeed86e-S1/runs/3697bc14-f0bd-48b9-8599-9683867eec63/./elasticsearch-spark_2.10-2.2.0-m1.jar
The text was updated successfully, but these errors were encountered: