Support Questions

Find answers, ask questions, and share your expertise

Error launching NIFI(v1.26) in service mode with systemctl: Permission denied

avatar

In Cluster mode, on Linux REDHAT 8 , (version NIFI 1.26), we have an error when we are trying to launch NIFI in service mode with command: systemctl start nifi.service.

user to execute systemctl : root

first script executed by systemctl (start) : /etc/rc.d/init.d/nifi  

In this script (line 28) will have to execute command : /install_directory/nifi/bin/nifi.sh

Script nifi.sh can be launched by everyone

-rwxrwxr-x. 1 user usrgroup vy9 17308 Jul 24 10:49 nifi.sh

 

In the journalctl log we have this trace:

Oct 22 10:53:37 Serveur_Name nifi[110953]: /etc/rc.d/init.d/nifi: line 28: /install_directory/nifi/bin/nifi.sh: Permission denied
Oct 22 10:53:37 Serveur_Name systemd[1]: nifi.service: Control process exited, code=exited status=126
Oct 22 10:53:37 Serveur_Name systemd[1]: nifi.service: Failed with result 'exit-code'.

I don't know which is wrong ...

 

 

 

1 REPLY 1

avatar
Master Mentor

@ThierryOfNantes 

Welcome to the Cloudera community.

I suspect your issue is with your run.as user.  While the nifi.sh may have executable to all, does your run.as user have necessary permissions to traverse the entire directory tree to the nifi.sh script?

I suggest trying to navigate the directory tree as the run as user and starting nifii.sh manually as that user.   

Can you share your /etc/rc.d/init.d/nifi script?
Can you share your /install_directory/nifi/bin/nifi.sh script?

 

Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.

Thank you,
Matt