0
votes

I have a requirement to move the files to archive folder once rest of the processors completed so add executestreamcommand as a last component and calling a shell script to move the file to archive folder.

Though script runs from backend it's failing with "permissions denied " error. Any idea what could be the issue here?

Also is there a way I know what user it is using to run the script.

Appreciate your support on it.

Thanks,

Kumar

2

2 Answers

0
votes

The user running the command from ExecuteStreamCommand is the same user that the NiFi process is running as e.g. nifi. So that user needs the appropriate permissions on the source and target directories.

If you don't know what the user is called, you can either check which user the process is running as with ps or you could look at who owns the NiFi home directories.

0
votes

Log onto the box where nifi is runing with the user that is running the nifi service, validate your script and then run it thru nifi interface.