- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
PutElasticsearchHttp failed with "failed to parse , document is empty
- Labels:
-
Apache NiFi
Created on
07-21-2022
05:40 AM
- last edited on
07-21-2022
08:30 AM
by
DianaTorres
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi
I try to use PutElasticsearchHttp to send json doc to elsaticsearch 6.8
our nifi server ver 1.15.3
I defined Attribute that contain the json doc with UpdateAtribute processor
UpdateAtribute processor connected to PutElasticsearchHttp
But when PutElasticsearchHttp run we got this error "failed to parse , docuement is empty"
any help is appreciated
Thanks
Created 07-22-2022 06:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Nifi_Al Its hard to guess here without seeing your flow, but i think here are a few ideas to resolve:
Use GenerateFlowFIle with content of the json you want to send to PutElasticsearchHttp
Use AttributesToJson to write attribute to content of flowfile, then send that to PutElasticsearchHttp
To test basic connectivity, i would use the first method, then build a working flow from there. I always work in small operational samples when trying to figure out how to configure a certain processor.
