- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
send data from python to nifi http request
- Labels:
-
Apache NiFi
Created on 03-26-2018 03:47 PM - edited 09-16-2022 06:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I want to be able to send automatically generated data with random from python to nifi using the requests library. on the nifi side I intend to use gethttp to retrieve the data. My question: what should I put in the URL parameter? I do not understand much t the APIs I searched on the internet since this morning but it remains a little vague someone can help me? thank you
Created 03-26-2018 09:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may be interested in the NiPyAPI module, it makes working with the NiFi API from Python MUCH easier.
Created on 03-27-2018 09:06 AM - edited 08-17-2019 11:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried a little test with listen http i made a ListenHttp processor as follows:
Then I created a little python code:
I have an error:
and I do not know if the configurations are correct
Created 03-27-2018 12:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The relevant part of the log is "Address already in use", looks like you've configured ListenHttp to listen on port 8081 but some other process is using that port already.