# \[hadoop\] ElasticsearchIllegalArgumentException

**URL:** <https://discuss.elastic.co/t/hadoop-elasticsearchillegalargumentexception/21387>\
**Category:** Elasticsearch\
**Created:** [December 25, 2014, 2:58am UTC](https://discuss.elastic.co/t/hadoop-elasticsearchillegalargumentexception/21387 "2014-12-25T02:58:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CAI\_Longqi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cai_longqi/32/1022_2.png) [@CAI\_Longqi](https://discuss.elastic.co/u/CAI_Longqi)\
**Post date:** [December 25, 2014, 2:58am UTC](https://discuss.elastic.co/t/hadoop-elasticsearchillegalargumentexception/21387/1 "2014-12-25T02:58:28Z")

</div>

Finally when reducing, it prompts me with such error:

14/12/25 00:35:45 INFO mapreduce.Job: map 100% reduce 96%

14/12/25 00:35:55 INFO mapreduce.Job: Task Id :  
attempt\_1417849082194\_0158\_r\_000000\_2, Status : FAILED

Error: org.elasticsearch.hadoop.rest.EsHadoopInvalidRequest: Found  
unrecoverable error [Bad Request(400) - [MapperPa

rsingException[failed to parse [page.revision.comment]]; nested:  
ElasticsearchIllegalArgumentException[unknown prope

rty [deleted]]; ]]; Bailing out..

```
    at 

```

org.elasticsearch.hadoop.rest.RestClient.retryFailedEntries(RestClient.java:199)

```
    at 

```

org.elasticsearch.hadoop.rest.RestClient.bulk(RestClient.java:165)

```
    at 

```

org.elasticsearch.hadoop.rest.RestRepository.sendBatch(RestRepository.java:170)

```
    at 

```

org.elasticsearch.hadoop.rest.RestRepository.doWriteToIndex(RestRepository.java:160)

```
    at 

```

org.elasticsearch.hadoop.rest.RestRepository.writeToIndex(RestRepository.java:130)

```
    at 

```

org.elasticsearch.hadoop.mr.EsOutputFormat$EsRecordWriter.write(EsOutputFormat.java:159)

```
    at 

```

org.apache.hadoop.mapred.ReduceTask$NewTrackingRecordWriter.write(ReduceTask.java:558)

```
    at 

```

org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:89)

```
    at 

```

org.apache.hadoop.mapreduce.lib.reduce.WrappedReducer$Context.write(WrappedReducer.java:105)

```
    at org.apache.hadoop.mapreduce.Reducer.reduce(Reducer.java:150)

    at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:171)

    at 

```

org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:627)

```
    at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:389)

    at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168)

    at java.security.AccessController.doPrivileged(Native Method)

    at javax.security.auth.Subject.doAs(Subject.java:415)

    at 

```

org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614)

```
    at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:163)

```

What does that mean? Any suggestions?

--  
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/af659de5-5274-425d-9901-8941ad7fcfb2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/af659de5-5274-425d-9901-8941ad7fcfb2%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:** [December 29, 2014, 12:20pm UTC](https://discuss.elastic.co/t/hadoop-elasticsearchillegalargumentexception/21387/2 "2014-12-29T12:20:19Z")

</div>

It looks like you have a mapping problem in Elasticsearch. Typically  
this occurs when you try incompatible/multiple value types on the same  
key (for example setting a string to a number field or an object to a  
string field - this looks like the case, etc...).  
The field in question looks to be `page.revision.comment` - check your  
mappings (do you depend on the automatic mapping or define one  
yourself?).

On 12/25/14, CAI Longqi [longqicai@gmail.com](mailto:longqicai@gmail.com) wrote:

> Finally when reducing, it prompts me with such error:
> 
> 14/12/25 00:35:45 INFO mapreduce.Job: map 100% reduce 96%
> 
> 14/12/25 00:35:55 INFO mapreduce.Job: Task Id :  
> attempt\_1417849082194\_0158\_r\_000000\_2, Status : FAILED
> 
> Error: org.elasticsearch.hadoop.rest.EsHadoopInvalidRequest: Found  
> unrecoverable error [Bad Request(400) - [MapperPa
> 
> rsingException[failed to parse [page.revision.comment]]; nested:  
> ElasticsearchIllegalArgumentException[unknown prope
> 
> rty [deleted]]; ]]; Bailing out..
> 
> ```
> at
> 
> ```
> 
> org.elasticsearch.hadoop.rest.RestClient.retryFailedEntries(RestClient.java:199)
> 
> ```
> at
> 
> ```
> 
> org.elasticsearch.hadoop.rest.RestClient.bulk(RestClient.java:165)
> 
> ```
> at
> 
> ```
> 
> org.elasticsearch.hadoop.rest.RestRepository.sendBatch(RestRepository.java:170)
> 
> ```
> at
> 
> ```
> 
> org.elasticsearch.hadoop.rest.RestRepository.doWriteToIndex(RestRepository.java:160)
> 
> ```
> at
> 
> ```
> 
> org.elasticsearch.hadoop.rest.RestRepository.writeToIndex(RestRepository.java:130)
> 
> ```
> at
> 
> ```
> 
> org.elasticsearch.hadoop.mr.EsOutputFormat$EsRecordWriter.write(EsOutputFormat.java:159)
> 
> ```
> at
> 
> ```
> 
> org.apache.hadoop.mapred.ReduceTask$NewTrackingRecordWriter.write(ReduceTask.java:558)
> 
> ```
> at
> 
> ```
> 
> org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:89)
> 
> ```
> at
> 
> ```
> 
> org.apache.hadoop.mapreduce.lib.reduce.WrappedReducer$Context.write(WrappedReducer.java:105)
> 
> ```
> at org.apache.hadoop.mapreduce.Reducer.reduce(Reducer.java:150)
> 
> at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:171)
> 
> at
> 
> ```
> 
> org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:627)
> 
> ```
> at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:389)
> 
> at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168)
> 
> at java.security.AccessController.doPrivileged(Native Method)
> 
> at javax.security.auth.Subject.doAs(Subject.java:415)
> 
> at
> 
> ```
> 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614)
> 
> ```
> at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:163)
> 
> ```
> 
> What does that mean? Any suggestions?
> 
> --  
> 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/af659de5-5274-425d-9901-8941ad7fcfb2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/af659de5-5274-425d-9901-8941ad7fcfb2%40googlegroups.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/CAJogdmdY5-9ZZ\_H-awP1%2B\_J7Xi9BeXWMm84dZD45rPrQ6EHL9g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAJogdmdY5-9ZZ_H-awP1%2B_J7Xi9BeXWMm84dZD45rPrQ6EHL9g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![CAI\_Longqi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cai_longqi/32/1022_2.png) [@CAI\_Longqi](https://discuss.elastic.co/u/CAI_Longqi)\
**Post date:** [December 30, 2014, 1:21am UTC](https://discuss.elastic.co/t/hadoop-elasticsearchillegalargumentexception/21387/3 "2014-12-30T01:21:03Z")

</div>

You're right. After carefully reviewing my mapping, I find some of my  
page.revision.comment have an attribute 'delete', some do not. It seems  
that elasticsearch requires all the indices to be in the same structure.  
Thanks 🙂

在 2014年12月29日星期一UTC+8下午8时20分27秒，Costin Leau写道：

> It looks like you have a mapping problem in Elasticsearch. Typically  
> this occurs when you try incompatible/multiple value types on the same  
> key (for example setting a string to a number field or an object to a  
> string field - this looks like the case, etc...).  
> The field in question looks to be `page.revision.comment` - check your  
> mappings (do you depend on the automatic mapping or define one  
> yourself?).
> 
> On 12/25/14, CAI Longqi \<[long...@gmail.com](mailto:long...@gmail.com) \<javascript:\>\> wrote:
> 
> > Finally when reducing, it prompts me with such error:
> > 
> > 14/12/25 00:35:45 INFO mapreduce.Job: map 100% reduce 96%
> > 
> > 14/12/25 00:35:55 INFO mapreduce.Job: Task Id :  
> > attempt\_1417849082194\_0158\_r\_000000\_2, Status : FAILED
> > 
> > Error: org.elasticsearch.hadoop.rest.EsHadoopInvalidRequest: Found  
> > unrecoverable error [Bad Request(400) - [MapperPa
> > 
> > rsingException[failed to parse [page.revision.comment]]; nested:  
> > ElasticsearchIllegalArgumentException[unknown prope
> > 
> > rty [deleted]]; ]]; Bailing out..
> > 
> > ```
> > at 
> > 
> > ```
> 
> org.elasticsearch.hadoop.rest.RestClient.retryFailedEntries(RestClient.java:199)
> 
> > ```
> > at 
> > 
> > ```
> > 
> > org.elasticsearch.hadoop.rest.RestClient.bulk(RestClient.java:165)
> > 
> > ```
> > at 
> > 
> > ```
> 
> org.elasticsearch.hadoop.rest.RestRepository.sendBatch(RestRepository.java:170)
> 
> > ```
> > at 
> > 
> > ```
> 
> org.elasticsearch.hadoop.rest.RestRepository.doWriteToIndex(RestRepository.java:160)
> 
> > ```
> > at 
> > 
> > ```
> 
> org.elasticsearch.hadoop.rest.RestRepository.writeToIndex(RestRepository.java:130)
> 
> > ```
> > at 
> > 
> > ```
> 
> org.elasticsearch.hadoop.mr.EsOutputFormat$EsRecordWriter.write(EsOutputFormat.java:159)
> 
> > ```
> > at 
> > 
> > ```
> 
> org.apache.hadoop.mapred.ReduceTask$NewTrackingRecordWriter.write(ReduceTask.java:558)
> 
> > ```
> > at 
> > 
> > ```
> 
> org.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:89)
> 
> > ```
> > at 
> > 
> > ```
> 
> org.apache.hadoop.mapreduce.lib.reduce.WrappedReducer$Context.write(WrappedReducer.java:105)
> 
> > ```
> > at org.apache.hadoop.mapreduce.Reducer.reduce(Reducer.java:150) 
> > 
> > at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:171) 
> > 
> > at 
> > 
> > ```
> > 
> > org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:627)
> > 
> > ```
> > at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:389) 
> > 
> > at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168) 
> > 
> > at java.security.AccessController.doPrivileged(Native Method) 
> > 
> > at javax.security.auth.Subject.doAs(Subject.java:415) 
> > 
> > at 
> > 
> > ```
> 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614)
> 
> > ```
> > at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:163) 
> > 
> > ```
> > 
> > What does that mean? Any suggestions?
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit
> 
> [https://groups.google.com/d/msgid/elasticsearch/af659de5-5274-425d-9901-8941ad7fcfb2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/af659de5-5274-425d-9901-8941ad7fcfb2%40googlegroups.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/51d1ac6e-4fdd-4fed-a291-170d6d890423%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/51d1ac6e-4fdd-4fed-a291-170d6d890423%40googlegroups.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, 12:41am UTC](https://discuss.elastic.co/t/hadoop-elasticsearchillegalargumentexception/21387/4 "2017-07-06T00:41:30Z")

</div>

Closed on July 6, 2017, 12:41am UTC


