# \[Hadoop\] java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected

**URL:** <https://discuss.elastic.co/t/hadoop-java-lang-incompatibleclasschangeerror-found-interface-org-apache-hadoop-mapreduce-jobcontext-but-class-was-expected/17018>\
**Category:** Elasticsearch\
**Created:** [April 15, 2014, 7:52am UTC](https://discuss.elastic.co/t/hadoop-java-lang-incompatibleclasschangeerror-found-interface-org-apache-hadoop-mapreduce-jobcontext-but-class-was-expected/17018 "2014-04-15T07:52:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaun\_Campbell](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@Shaun\_Campbell](https://discuss.elastic.co/u/Shaun_Campbell)\
**Post date:** [April 15, 2014, 7:52am UTC](https://discuss.elastic.co/t/hadoop-java-lang-incompatibleclasschangeerror-found-interface-org-apache-hadoop-mapreduce-jobcontext-but-class-was-expected/17018/1 "2014-04-15T07:52:36Z")

</div>

Hi there,

I'm having a bit of trouble using the Maven published version of  
elasticsearch-hadoop 1.3.0M3. According to the docs, it should be  
compatible with both Hadoop 1.x and 2.x, although I'm seeing an error  
indicating otherwise. I downloaded the sources, and modified the build to  
compile against hadoop 2.x only and this seems to have worked. Is there a  
java option perhaps that I should add to make the maven distributed jar  
work correctly?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a78cb9e0-a0e4-4e75-832e-9b2a193e0473%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a78cb9e0-a0e4-4e75-832e-9b2a193e0473%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [April 15, 2014, 7:58am UTC](https://discuss.elastic.co/t/hadoop-java-lang-incompatibleclasschangeerror-found-interface-org-apache-hadoop-mapreduce-jobcontext-but-class-was-expected/17018/2 "2014-04-15T07:58:11Z")

</div>

Hi,

You bumped into a bug that slipped in M3. This has been fixed in master - can you please try out the SNAPSHOTs [1]?

Thanks,

[1] [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/hadoop/current/install.html#download-dev)

On 4/15/14 10:52 AM, Shaun Campbell wrote:

> Hi there,
> 
> I'm having a bit of trouble using the Maven published version of elasticsearch-hadoop 1.3.0M3. According to the docs, it  
> should be compatible with both Hadoop 1.x and 2.x, although I'm seeing an error indicating otherwise. I downloaded the  
> sources, and modified the build to compile against hadoop 2.x only and this seems to have worked. Is there a java option  
> perhaps that I should add to make the maven distributed jar work correctly?
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/a78cb9e0-a0e4-4e75-832e-9b2a193e0473%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a78cb9e0-a0e4-4e75-832e-9b2a193e0473%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/a78cb9e0-a0e4-4e75-832e-9b2a193e0473%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a78cb9e0-a0e4-4e75-832e-9b2a193e0473%40googlegroups.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Costin

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/534CE693.5000600%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/534CE693.5000600%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Shaun\_Campbell](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@Shaun\_Campbell](https://discuss.elastic.co/u/Shaun_Campbell)\
**Post date:** [April 15, 2014, 8:30am UTC](https://discuss.elastic.co/t/hadoop-java-lang-incompatibleclasschangeerror-found-interface-org-apache-hadoop-mapreduce-jobcontext-but-class-was-expected/17018/3 "2014-04-15T08:30:06Z")

</div>

Thanks Costin, that has fixed it! 🙂

-----Original Message-----  
From: [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com) [[mailto:elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)] On Behalf Of Costin Leau  
Sent: 15 April 2014 08:58  
To: [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
Subject: Re: [Hadoop] java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected

Hi,

You bumped into a bug that slipped in M3. This has been fixed in master - can you please try out the SNAPSHOTs [1]?

Thanks,

[1] [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/hadoop/current/install.html#download-dev)

On 4/15/14 10:52 AM, Shaun Campbell wrote:

> Hi there,
> 
> I'm having a bit of trouble using the Maven published version of  
> elasticsearch-hadoop 1.3.0M3. According to the docs, it should be  
> compatible with both Hadoop 1.x and 2.x, although I'm seeing an error  
> indicating otherwise. I downloaded the sources, and modified the build to compile against hadoop 2.x only and this seems to have worked. Is there a java option perhaps that I should add to make the maven distributed jar work correctly?
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send  
> an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/a78cb9e0-a0e4-4e75-832](https://groups.google.com/d/msgid/elasticsearch/a78cb9e0-a0e4-4e75-832)  
> e-9b2a193e0473%[40googlegroups.com](http://40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/a78cb9e0-a0e4-4e75-832e-9b2a193e0473%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a78cb9e0-a0e4-4e75-832e-9b2a193e0473%40googlegroups.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Costin

--  
You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/53dU6sOvZcc/unsubscribe](https://groups.google.com/d/topic/elasticsearch/53dU6sOvZcc/unsubscribe).  
To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/534CE693.5000600%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/534CE693.5000600%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/71EFF79072522748856FBA8E09C46CB24488CC55%40GBRMBX02.emea.SAS.com](https://groups.google.com/d/msgid/elasticsearch/71EFF79072522748856FBA8E09C46CB24488CC55%40GBRMBX02.emea.SAS.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [April 15, 2014, 8:36am UTC](https://discuss.elastic.co/t/hadoop-java-lang-incompatibleclasschangeerror-found-interface-org-apache-hadoop-mapreduce-jobcontext-but-class-was-expected/17018/4 "2014-04-15T08:36:12Z")

</div>

Excellent. The fix will be part of RC1 which is not too far off.

Cheers,

On 4/15/14 11:30 AM, Shaun Campbell wrote:

> Thanks Costin, that has fixed it! 🙂
> 
> -----Original Message-----  
> From: [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com) [[mailto:elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)] On Behalf Of Costin Leau  
> Sent: 15 April 2014 08:58  
> To: [elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)  
> Subject: Re: [Hadoop] java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected
> 
> Hi,
> 
> You bumped into a bug that slipped in M3. This has been fixed in master - can you please try out the SNAPSHOTs [1]?
> 
> Thanks,
> 
> [1] [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/hadoop/current/install.html#download-dev)
> 
> On 4/15/14 10:52 AM, Shaun Campbell wrote:
> 
> > Hi there,
> > 
> > I'm having a bit of trouble using the Maven published version of  
> > elasticsearch-hadoop 1.3.0M3. According to the docs, it should be  
> > compatible with both Hadoop 1.x and 2.x, although I'm seeing an error  
> > indicating otherwise. I downloaded the sources, and modified the build to compile against hadoop 2.x only and this seems to have worked. Is there a java option perhaps that I should add to make the maven distributed jar work correctly?
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send  
> > an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/a78cb9e0-a0e4-4e75-832](https://groups.google.com/d/msgid/elasticsearch/a78cb9e0-a0e4-4e75-832)  
> > e-9b2a193e0473%[40googlegroups.com](http://40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/a78cb9e0-a0e4-4e75-832e-9b2a193e0473%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a78cb9e0-a0e4-4e75-832e-9b2a193e0473%40googlegroups.com?utm_medium=email&utm_source=footer).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Costin
> 
> --  
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/53dU6sOvZcc/unsubscribe](https://groups.google.com/d/topic/elasticsearch/53dU6sOvZcc/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/534CE693.5000600%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/534CE693.5000600%40gmail.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Costin

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/534CEF7C.5090801%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/534CEF7C.5090801%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:35am UTC](https://discuss.elastic.co/t/hadoop-java-lang-incompatibleclasschangeerror-found-interface-org-apache-hadoop-mapreduce-jobcontext-but-class-was-expected/17018/5 "2017-07-06T01:35:51Z")

</div>


