Skip to main content
Solved

Elasticsearch writer error


Forum|alt.badge.img+2

I am trying to write simple features with/without geometry to elasticsearch. I tried different params but always get this error

ELASTICSEARCH writer: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true."}],"type":"illegal_argument_exception","reason":"Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true."},"status":400}

Does anyone have a clue?

Best answer by zhangjinzhou

FME doesn't support elasticsearch 7+ now.

View original
Did this help you find an answer to your question?

9 replies

sigtill
Contributor
Forum|alt.badge.img+24
  • Contributor
  • October 18, 2019

Insert a Sample and send only 1 feature to the writer. Can you take a screenshot of this sample in the FME Data Inspector? So we can have a look at the attributes.


Forum|alt.badge.img+2
sigtill wrote:

Insert a Sample and send only 1 feature to the writer. Can you take a screenshot of this sample in the FME Data Inspector? So we can have a look at the attributes.

To simplify the process. I created a new record a assign one attribute to it. It still does not work.


steveatsafe
Safer
Forum|alt.badge.img+12
  • Safer
  • October 21, 2019
zhangjinzhou wrote:

To simplify the process. I created a new record a assign one attribute to it. It still does not work.

@zhangjinzhou Can you expand on the Versions of software in use? I can do a test to confirm when I know more... but what you are doing looks pretty simple.


Forum|alt.badge.img+2
steveatsafe wrote:

@zhangjinzhou Can you expand on the Versions of software in use? I can do a test to confirm when I know more... but what you are doing looks pretty simple.

I used elastic 7. It works after I downgrade to 6.8. Thanks.


Forum|alt.badge.img+2
  • Author
  • Best Answer
  • October 21, 2019

FME doesn't support elasticsearch 7+ now.


nampreetatsafe
Safer
Forum|alt.badge.img+12
zhangjinzhou wrote:

FME doesn't support elasticsearch 7+ now.

Thanks @zhangjinzhou... that's right FME doesn't yet seem to support version 7. I see an enhancement request submitted for Elasticsearch v7 support (internal reference: FMEENGINE-59393). We'll try providing any further updates to version 7 support on this thread.


  • April 1, 2021

Has this been fixed? I need to write to ElasticSearch and am getting the error. I cannot revert to ES 6.xx.


steveatsafe
Safer
Forum|alt.badge.img+12

@planomax​ I see no one has replied to you... did you get past your error? ES 7 should be supported. Please do reach out to us at www.safe.com/support and open a support case. We can take a closer look at the problem. (Also in the meantime share the FME version you are experiencing this in). FME 2021.0 would be worth trying if you are not using it already.


steveatsafe
Safer
Forum|alt.badge.img+12

Support for ElasticSearch 7 was added in 2021.0. Do let us know of any issues you may encounter!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings