Created on 05-13-2016 06:13 AM - edited 08-18-2019 06:28 AM
Hi: there is somenthing wrong in my cluster, i cant add new services:
Created 05-13-2016 08:56 AM
This is unix filesystem permission issue.
Make sure to provide user running ambari-server has Read/Write permission on /var/run/ambari-server and its all subdirectories.
You can run command : chown -R <ambari-server-user> /var/run/ambari-server
If you are not sure which user is running ambari-server , go to ambariserver logs (/var/log/ambari-server/ambari-server.log) and you can find the username in detailed error stack trace or the point when you start running ambari-server.
Hope this helps.
Created 05-13-2016 06:41 AM
Can you paste the output of below command on ambari server?
ls -lrt /var/run/ambari-server/stack-recommendations/
Created 05-13-2016 09:33 AM
[root@a01hop01 ambari-server]# ls -lrt /var/run/ambari-server/stack-recommendations/ total 0 [root@a01hop01 ambari-server]# ls -lrt /var/run/ambari-server/ total 4 drwxr-xr-x 2 root root 40 May 13 11:33 stack-recommendations -rw-r--r-- 1 root root 6 May 13 11:33 ambari-server.pid
Created 05-13-2016 08:56 AM
This is unix filesystem permission issue.
Make sure to provide user running ambari-server has Read/Write permission on /var/run/ambari-server and its all subdirectories.
You can run command : chown -R <ambari-server-user> /var/run/ambari-server
If you are not sure which user is running ambari-server , go to ambariserver logs (/var/log/ambari-server/ambari-server.log) and you can find the username in detailed error stack trace or the point when you start running ambari-server.
Hope this helps.
Created 10-19-2016 07:29 AM
I tried doing that but it's not working for me.
Created 05-13-2016 10:03 AM
Hi:
I did this in the ambari-server and now its working
chown -R ambari /var/run/ambari-server
Thanks
Created 10-10-2016 03:48 PM
Another way you can find a user is by looking in the conf file:
cat /etc/ambari-server/conf/ambari.properties | grep ambari-server.user
Created 10-19-2016 07:28 AM
Hey How you fixed it? I tried everything which is mentioned here but it's not helping much!!!