Error: [illegal_argument_exception] Mapper for [hits] conflicts with existing mapping in other types:
[mapper [hits] cannot be changed from type [long] to [int]]
at respond (kibana.bundle.js:76820)
at checkRespForFailure (kibana.bundle.js:76783)
at kibana.bundle.js:75401
at processQueue (commons.bundle.js:42358)
at commons.bundle.js:42374
at Scope.$eval (commons.bundle.js:43602)
at Scope.$digest (commons.bundle.js:43413)
at Scope.$apply (commons.bundle.js:43710)
at done (commons.bundle.js:38159)
at completeRequest (commons.bundle.js:38357)
Dashboards and visualizations seem to work though.
As you can see, it's a long here. Whether that could've changed, I have no idea. I wasn't having this problem before and then I suddenly started getting the error. Or at least the Discover tab was loading just fine before (I guess it's conceivable that it was loading even though an error was being thrown).
I could delete my elasticsearch data and start over from scratch if that will solve it, but I'd like to know why this happened so I can be sure it won't happen again. I certainly don't want to have to start over from scratch multiple times in the future.
I upgraded from 4.1 I think (but definitely not 3.x). However, I have also done a curl -XDELETE "http://localhost:9200/_all" since then, and I assume that also wipes out the .kibana index. That said, I have done the following: 1) export dashboard. 2) delete all (like above). 3) repopulate my index. 4) import dashboard.
I'm still not sure why this problem would suddenly appear a day later after successfully using the kibana UI including the dashboard tab. Seems weird, particularly if the thinking is that it's related to an upgrade.
Also, even though I imported a dashboard, the issue you linked exhibits the problem when going to the Dashboard tab. In my case the Dashboard tab loads fine (using the imported dashboard). It's the Discover tab, which makes me think it's probably not related to imported objects.
Can you stop Kibana, delete .kibana index, start Kibana. Do you still get this same error? Then re-import your dashboard, do you get this same error now?
Thanks. That seems to have worked for now, but my concern is why did this occur seemingly without anything done on my part and how do I avoid this in the future? Only time will tell how long this fix will last.
I too am having this problem. I haven't tried doing curl -XDELETE $HOST:9200/.kibana yet but like TheShanMan, I deleted my indexes at one point via curl -XDELETE "http://localhost:9200/_all" and now when I click the dashboard nothing happens. The dev console shows the same error message. When I do http://localhost:9200/_cat/indices it shows the indexes I believe should be there. All status are green. I'm going to try deleting .kibana now
I think it's possible that a fix for a bug that went into 4.1 never made it into subsequent releases. I'm looking into it now and will keep this ticket updated.
Error: [illegal_argument_exception] Mapper for [hits] conflicts with existing mapping in other types: [mapper [hits] cannot be changed from type [long] to [int]]
Is there a followup on this? I'm running Kibana 4.3 and started getting 'Bad Request' messages. Found this thread, but it doesn't seem to have a resolution.
Was something found in 4.3 that was fixed in 4.4 for this?
Wanted to check here before opening a new thread.
Thanks
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.