- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Start a processor using Python SDK of Apache Nifi
- Labels:
-
Apache NiFi
-
NiFi Registry
Created ‎09-21-2023 12:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a python code which is trying to authenticates to my NIFI server and start a processor inside it.
Please see code below:
start_processor = requests.put(url=start_processor_url, headers=headers)
Looking fwd to your responses.
Created ‎09-22-2023 01:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Any feedback will be appreciated. Thanks.
Created ‎09-22-2023 08:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Kiranq
The NiFi rest-api endpoint for obtaining token is not rest-api/access.
It is rest-api/access/token
https://<nifi-hostname>:<nifi-port>/nifi-api/access/token
and data passed like:
--data-raw 'username=<username>&password=<user password>'
Then the token needs to be passed with every subsequent rest-api request.
If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "Accept as Solution" on one or more of them that helped.
Thank you,
Matt
