I want to create a simple flow that executes a Python script stored in a local directory. The flow will process data fetched from a source directory, then pass it to to a Python script, and generate an output file which will be stored in a target directory.
I found someone asking about restricted components (ExecuteStreamCommand Processor), and giving them access. I noticed my NiFi UI at the time did not have the key icon on the left, nor create policies option under the menu (located at the top right of the UI). As a result, I realized the NiFi instance I was running was not secure:
I only have one user, which is at the admin level. I did not create a test user when I followed the two videos.
I started NiFi 1.8.0 again after the videos, and now I had the policy icons in my UI. Also, in the workflow.png, you can see on the top right of the UI 'CN=sys_admin', which I believe it means that I opened NiFi as the sys_admin user that I've created. I created the same flow as before, and this time, I changed the policies for the admin, and included the admin under 'access restricted components' & 'regardless of restrictions'. Just in case, I added the admin under each sub policy under 'access restricted components'. The problem still persists.
Whats the cause behind the error? And how can I resolve this issue? Any help and suggestions are appreciated.
@Saisreenath According to this article: you should be in the folder containing the script you want to execute to set the execution permissions.
Nifi needs permissions to access the script. It also needs permission to be able to execute the command you gave it. In your error it is saying it cannot run the python command. You may need to adjust that command path. In summary make sure you give correct permissions to everything you put in Properties tab of the NiFi Processor, and use the correct paths for python.