Support Questions

Find answers, ask questions, and share your expertise

I cant add new services into ambari

avatar
Master Collaborator

Hi: there is somenthing wrong in my cluster, i cant add new services:

4223-sin-titulo.png

1 ACCEPTED SOLUTION

avatar
Super Collaborator

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.

View solution in original post

7 REPLIES 7

avatar

@Roberto Sancho

Can you paste the output of below command on ambari server?

ls -lrt /var/run/ambari-server/stack-recommendations/

avatar
Master Collaborator
[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

avatar
Super Collaborator

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.

avatar
Contributor

I tried doing that but it's not working for me.

avatar
Master Collaborator

Hi:

I did this in the ambari-server and now its working

chown -R ambari /var/run/ambari-server

Thanks

avatar
Explorer

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

avatar
Contributor

Hey How you fixed it? I tried everything which is mentioned here but it's not helping much!!!