Created 10-06-2017 03:26 PM
I want to create a Nifi flow with GET requests to a REST API that supports authorization via a Bearer token, however i have problems to create the proper flow due to the several available HTTP-related processors in Nifi.
My question is which is the proper flow to do this?
I tried the flow GetHTTP --> Update Attribute --> PutHDFS to store also the results in HDFS after the filename is appended with a timestamp but i could not find a way to properly configure the GetHTTP processor for the token authorization.
The flow InvokeHTTP --> UpdateAttribute --> PutHDFS also didnt work for me, setting the Send Attributes =Authorization and adding the token as value to the newly created Authorization property fails with a "Yielding processor due to exception encountered as source processor" error. Any ideas on how could i proceed with this? Thanks in advance!
Created on 10-12-2017 08:52 AM - edited 08-17-2019 09:21 PM
I found a way to create empty flowfiles, update the attributes with proper authorization headers and send the request with InvokeHTTP.
Created on 10-12-2017 08:52 AM - edited 08-17-2019 09:21 PM
I found a way to create empty flowfiles, update the attributes with proper authorization headers and send the request with InvokeHTTP.
Created 01-25-2018 07:17 PM
This helps a lot. Can someone help me how to pass Bearer Authentication? How to pass it as header?
how to update the attributes with proper authorization headers and send the request with InvokeHTTP?
Thanks in advance.
Created 04-15-2020 01:27 PM
Hi,
Can you share the template with us or the screenshot on which attribute (created or updated) and how it was added to the header of InvokeHTTP.
Please share , I am facing the same issue.
Thanks
Rupesh
Created 04-22-2020 09:17 AM
Created 05-04-2018 12:21 PM