# Can't merge a non object mapping \[cluster\] with an object mapping \[cluster\] ES 5.3.0

**URL:** <https://discuss.elastic.co/t/cant-merge-a-non-object-mapping-cluster-with-an-object-mapping-cluster-es-5-3-0/81841>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [April 10, 2017, 2:57pm UTC](https://discuss.elastic.co/t/cant-merge-a-non-object-mapping-cluster-with-an-object-mapping-cluster-es-5-3-0/81841 "2017-04-10T14:57:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![khaoulaari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khaoulaari/32/24288_2.png) [@khaoulaari](https://discuss.elastic.co/u/khaoulaari)\
**Post date:** [April 10, 2017, 2:57pm UTC](https://discuss.elastic.co/t/cant-merge-a-non-object-mapping-cluster-with-an-object-mapping-cluster-es-5-3-0/81841/1 "2017-04-10T14:57:52Z")

</div>

I'm trying to adapt the latest version of elastic search 5.3.0 with inviso and when I tried to index some jobs with a python file I’m getting the following error

can someone tell me what is the changes in the latest version and how can i resolve the problem  
$ python index\_cluster\_stats.py

\<Response [200]\>  
INFO:inviso.cluster:training: no applications running.  
WARNING:elasticsearch:PUT /inviso-cluster/metrics/cluster\_1\_1491835140000?timestamp=1491835140000&ttl=30d [status:400 request:0.254s]  
ERROR:inviso.cluster:Error processing: training  
ERROR:inviso.cluster:TransportError(400, {u'root\_cause': [{u'reason': u"Can't merge a non object mapping [cluster] with an object mapping [cluster]", u'type': u'illegal\_argument\_exception'}], u'type': u'illegal\_argument\_exception', u'reason': u"Can't merge a non object mapping [cluster] with an object mapping [cluster]"})  
Traceback (most recent call last):  
File "index\_cluster\_stats.py", line 93, in index\_stats  
index\_metrics(es, cluster, info)  
File "index\_cluster\_stats.py", line 64, in index\_metrics  
body=metrics)  
File ".local/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 70, in \_wrapped  
return func(\*args, params=params, \*\*kwargs)  
File ".local/lib/python2.7/site-packages/elasticsearch/client/ **init**.py", line 208, in index  
\_make\_path(index, doc\_type, id), params=params, body=body)  
File ".local/lib/python2.7/site-packages/elasticsearch/transport.py", line 274, in perform\_request  
status, headers, data = connection.perform\_request(method, url, params, body, ignore=ignore)  
File ".local/lib/python2.7/site-packages/elasticsearch/connection/http\_urllib3.py", line 55, in perform\_request  
self.\_raise\_error(response.status, raw\_data)  
File ".local/lib/python2.7/site-packages/elasticsearch/connection/base.py", line 83, in \_raise\_error  
raise HTTP\_EXCEPTIONS.get(status\_code, TransportError)(status\_code, error\_message, additional\_info)  
RequestError: TransportError(400, {u'root\_cause': [{u'reason': u"Can't merge a non object mapping [cluster] with an object mapping [cluster]", u'type': u'illegal\_argument\_exception'}], u'type': u'illegal\_argument\_exception', u'reason': u"Can't merge a non object mapping [cluster] with an object mapping [cluster]"})

---

<div class="post-metadata">

**Author:** ![jkuang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkuang/32/72637_2.png) [@jkuang](https://discuss.elastic.co/u/jkuang)\
**Post date:** [April 11, 2017, 6:08pm UTC](https://discuss.elastic.co/t/cant-merge-a-non-object-mapping-cluster-with-an-object-mapping-cluster-es-5-3-0/81841/2 "2017-04-11T18:08:52Z")

</div>

Take at the discuss link below. I think you are having the same problem.

> [@Filter or output plugin complains: Can't merge a non object mapping with an object mapping](https://discuss.elastic.co/t/filter-or-output-plugin-complains-cant-merge-a-non-object-mapping-with-an-object-mapping/46665):
>
> Not sure if its the json filter or the elasticsearch output plugin. But I'm hitting this Logstash error "Can't merge a non object mapping [myMap.1.myList] with an object mapping [myMap.1.myList]" Logstash error: {:timestamp=\>"2016-04-07T10:50:56.952000+0000", :message=\>"Failed action. ", :status=\>400, :action=\>["index", {:\_id=\>nil, :\_index=\>"logstash-2016.04.07", :\_type=\>"jsonlog", :\_routing=\>nil}, 2016-04-07T10:50:56.189Z MYHOST {"timestamp":"2016-04-07 10:50:55,562","level":"INFO","logger"…

---

<div class="post-metadata">

**Author:** ![khaoulaari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khaoulaari/32/24288_2.png) [@khaoulaari](https://discuss.elastic.co/u/khaoulaari)\
**Post date:** [April 12, 2017, 7:14am UTC](https://discuss.elastic.co/t/cant-merge-a-non-object-mapping-cluster-with-an-object-mapping-cluster-es-5-3-0/81841/3 "2017-04-12T07:14:56Z")

</div>

thank you for your answer I’ve already seen the post but it doesn’t help me  
although i resolved the problem with indexing my jobs without timestamps fields , it was actually the main error , i think it's not supported on elasticsearch-5.3.0

---

<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:** [May 10, 2017, 7:20am UTC](https://discuss.elastic.co/t/cant-merge-a-non-object-mapping-cluster-with-an-object-mapping-cluster-es-5-3-0/81841/4 "2017-05-10T07:20:19Z")

</div>

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