- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Delete ElasticSearch document using PutElasticsearchHttp
- Labels:
-
Apache NiFi
Created ‎07-20-2020 12:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am trying to delete ES document using PutElasticsearchHttp.
I can query for the document but when I try to delete i get error message "Flowfile content is not valid json" I get the flowfile in XML format.
My identifier value is extracted as an attribute. This same attribute value can query ES and successfully fetch record I wanted to delete. This only fails when i add PutElasticsearchHttp process.
The above is my configuration.
Thanks
Created ‎07-21-2020 07:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK seems. I am doing something wrong here.
How do i delete a document from ElasticSearch using NiFi processor. I am using niFi version 1.8.0. Can i delete a document from ES with an attribute. without flow file? I ask this as I have already extracted attribute from file. I am going to use this as the identifier in NiFi processor.
Created ‎07-21-2020 11:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found solution to this. I have wrote a NiFi processor,easy for me to write processor in Java, to convert XML to JSON. I didn't go the XSLT path as my XMLs structure would be different.
Once i did convert the xml to json the delete function of the PutElasticsearchHttp processor worked.
Thanks
