- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Use NIFI REST API's using Python
- Labels:
-
Apache NiFi
Created ‎08-29-2018 05:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am seeing lot of curl commands to trigger the NIFI dataflow through REST API's. I would like to know if I can use Python to do similar triggers or curl is the only one recommended? If I can use python as well, can someone explain me how should I construct the headers and binary data and pass the object using Requests module. Thanks for the help.
Created ‎08-29-2018 05:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎08-31-2018 09:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a full Python client for NiFi, NiFi-Registry, and I'm just about to add the Schema-Registry as well.
https://github.com/Chaffelson/nipyapi
It is community supported and comes with all the basic calls you would need to automate your NiFi flows, higher level functions for complex tasks like 'stop all processors in this process group and purge all the queues', and demos of various usage methods like tokenAuth security, promoting flow versions between environments, and deploying NiFi in Docker containers for testing.
