Support Questions

Find answers, ask questions, and share your expertise

Permission Denied in Execute Stream Command Nifi

avatar
Rising Star

I am trying to access a .py file present in one of the docker container and I am using execute stream command processor for it. However, I am receiving "Permission Denied" error on the .py file. 

Kiranq_1-1706835617196.png

Kiranq_2-1706835628664.png

Even though, the file has all the rights given but still facing this issue. Any feedback will be appreciate. Thanks. 

 

 

2 REPLIES 2

avatar
Rising Star

Any feedback would be appreciated. 

avatar
Master Mentor

@Kiranq 
all components (processors, controller services, reporting tasks, etc) execute as teh user that owns the running NiFi service.  So that NiFi service user would need to be able to execute the local system command.  The user who authenticates themselves to access the NiFi UI is not the user used to run the components.

Have you tried as the NiFi service user to execute your python code from command line?

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