# Multiple ES-Hadoop versions detected in the classpath

**URL:** https://discuss.elastic.co/t/multiple-es-hadoop-versions-detected-in-the-classpath/75527
**Category:** Elasticsearch
**Tags:** es-hadoop
**Created:** [February 17, 2017, 3:50pm UTC](https://discuss.elastic.co/t/multiple-es-hadoop-versions-detected-in-the-classpath/75527 "2017-02-17T15:50:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![G\_Babu\_Prabhakar](https://avatars.discourse-cdn.com/v4/letter/g/d9b06d/32.png) [@G\_Babu\_Prabhakar](https://discuss.elastic.co/u/G_Babu_Prabhakar)
#### Post date: [February 17, 2017, 3:50pm UTC](https://discuss.elastic.co/t/multiple-es-hadoop-versions-detected-in-the-classpath/75527/1 "2017-02-17T15:50:53Z")

</div>

Getting Multiple ES-Hadoop versions issues. Using MapR distribution of Hadoop. Running Spark job in yarn/cluster mode.

java.lang.Error: Multiple ES-Hadoop versions detected in the classpath; please use only one  
jar:file:/tmp/hadoop-accion\_mapr/nm-local-dir/usercache/bprabhakar/appcache/application\_1486664324019\_1027/container\_e36\_1486664324019\_1027\_01\_000002/elasticsearch-spark-20\_2.11-5.0.0.jar  
jar:file:/mapr/airavata/local/h10n5.accion.com/tmp/hadoop/nm-local-dir/usercache/bprabhakar/appcache/application\_1486664324019\_1027/container\_e36\_1486664324019\_1027\_01\_000002/elasticsearch-spark-20\_2.11-5.0.0.jar

```
            at org.elasticsearch.hadoop.util.Version.<clinit>(Version.java:73)
            at org.elasticsearch.hadoop.rest.RestService.createWriter(RestService.java:542)
            at org.elasticsearch.spark.rdd.EsRDDWriter.write(EsRDDWriter.scala:58)
            at org.elasticsearch.spark.rdd.EsSpark$$anonfun$doSaveToEs$1.apply(EsSpark.scala:102)
            at org.elasticsearch.spark.rdd.EsSpark$$anonfun$doSaveToEs$1.apply(EsSpark.scala:102)
            at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:70)
            at org.apache.spark.scheduler.Task.run(Task.scala:86)
            at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:274)
            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)
```

---

<div class="post-metadata">

### Author: ![james.baiera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james.baiera/32/10209_2.png) [@james.baiera](https://discuss.elastic.co/u/james.baiera)
#### Post date: [February 17, 2017, 6:41pm UTC](https://discuss.elastic.co/t/multiple-es-hadoop-versions-detected-in-the-classpath/75527/2 "2017-02-17T18:41:18Z")

</div>

@G_Babu_Prabhakar It seems that you have multiple paths linking up to what looks like the same place on the filesystem:

```auto
/mapr/airavata/local/h10n5.accion.com/tmp/hadoop/
/tmp/hadoop-accion_mapr/

```

ES-Hadoop is probably sensing that there are multiple paths to the same artifact file. That or something is amiss with symlinks or mounting on your nodes...

---

<div class="post-metadata">

### Author: ![G\_Babu\_Prabhakar](https://avatars.discourse-cdn.com/v4/letter/g/d9b06d/32.png) [@G\_Babu\_Prabhakar](https://discuss.elastic.co/u/G_Babu_Prabhakar)
#### Post date: [February 19, 2017, 2:37pm UTC](https://discuss.elastic.co/t/multiple-es-hadoop-versions-detected-in-the-classpath/75527/3 "2017-02-19T14:37:44Z")

</div>

Thanks James.

Any workaround to run the code till the actual issue is resolved?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 19, 2017, 2:37pm UTC](https://discuss.elastic.co/t/multiple-es-hadoop-versions-detected-in-the-classpath/75527/4 "2017-03-19T14:37:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
