Created on 10-31-2016 10:39 AM - edited 09-16-2022 03:46 AM
Just downloaded HDP 2.5 Sandbox and tried to install one of existing but not installed services (NiFi) from Ambari UI.
This leads to the following error: I've found similar issues mentioned here: https://community.hortonworks.com/questions/50950/ambari-server-wizard-assign-masters-menu-error-occ...
But when I'm trying to change the owner of that directory or even delete and re-create its content (acting as a root) I'm getting the following error:
rm: cannot remove `1': Invalid argument
Created 11-01-2016 04:37 AM
@Volodymyr Ostapiv , the Sandbox release has been updated, please download it again, you should not face this issue now.
Created 10-31-2016 03:34 PM
Can you please refer below thread
https://community.hortonworks.com/questions/33127/i-cant-add-new-services-into-ambari.html
It looks like permission issue. Can you please try to change owner of /var/run/ambari-server to the user by which ambari-server daemon is running?
Please do let me know if you need any further help.
Created 10-31-2016 08:51 PM
This is due to an issue in the docker HDP 2.5 Sandbox, which will be addressed with the next Sandbox release.
In the meantime, try the solution in the link below:
https://community.hortonworks.com/questions/62271/unable-to-add-apache-nifi-in-ambari.html
Created 11-01-2016 04:37 AM
@Volodymyr Ostapiv , the Sandbox release has been updated, please download it again, you should not face this issue now.
Created 11-01-2016 07:51 AM
[root@sandbox ~]# ls -lrt /var/run/ambari-server/stack-recommendations/ total 24 drwxrwxrwx 1 root root 4096 Sep 14 06:43 2 drwxrwxrwx 1 root root 4096 Sep 14 06:43 3 drwxrwxrwx 1 root root 4096 Sep 14 06:43 4 drwxrwxrwx 1 root root 4096 Sep 14 06:44 5 drwxrwxrwx 1 root root 4096 Oct 31 09:49 6 drwxrwxrwx 1 root root 4096 Oct 31 09:50 1Tried to delete:
[root@sandbox ~]# rm -rf /var/run/ambari-server/stack-recommendations/* rm: cannot remove `/var/run/ambari-server/stack-recommendations/1': Invalid argument rm: cannot remove `/var/run/ambari-server/stack-recommendations/2': Invalid argument rm: cannot remove `/var/run/ambari-server/stack-recommendations/3': Invalid argument rm: cannot remove `/var/run/ambari-server/stack-recommendations/4': Invalid argument rm: cannot remove `/var/run/ambari-server/stack-recommendations/5': Invalid argument rm: cannot remove `/var/run/ambari-server/stack-recommendations/6': Invalid argumentTried change owner:
[root@sandbox ~]# cat /etc/ambari-server/conf/ambari.properties | grep ambari-server.user ambari-server.user=root [root@sandbox ~]# chown -R root /var/run/ambari-server/stack-recommendations/
Still no effect. Downloading new sandbox now
Created 11-01-2016 02:31 PM
Updated sandbox. everything is working now, thanks