Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

I cant add new services into ambari

Solved Go to solution
Highlighted

I cant add new services into ambari

Super Collaborator

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

4223-sin-titulo.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: I cant add new services into ambari

Expert Contributor

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
Highlighted

Re: I cant add new services into ambari

@Roberto Sancho

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

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

Highlighted

Re: I cant add new services into ambari

Super 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
Highlighted

Re: I cant add new services into ambari

Expert Contributor

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

Highlighted

Re: I cant add new services into ambari

Explorer

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

Highlighted

Re: I cant add new services into ambari

Super Collaborator

Hi:

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

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

Thanks

Highlighted

Re: I cant add new services into ambari

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

Re: I cant add new services into ambari

Explorer

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

Don't have an account?
Coming from Hortonworks? Activate your account here