Support Questions
Find answers, ask questions, and share your expertise

send data from python to nifi http request

Contributor

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

3 REPLIES 3

Super Guru

You may be interested in the NiPyAPI module, it makes working with the NiFi API from Python MUCH easier.

Contributor
@Matt Burgess

I tried a little test with listen http i made a ListenHttp processor as follows:

64874-listen.png

Then I created a little python code:

pythonreq.png

I have an error:

64876-logs.png

and I do not know if the configurations are correct

Super Guru

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.