- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
I cant add new services into ambari
- Labels:
-
Apache Ambari
Created on ‎05-13-2016 06:13 AM - edited ‎08-18-2019 06:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi: there is somenthing wrong in my cluster, i cant add new services:
Created ‎05-13-2016 08:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried doing that but it's not working for me.
Created ‎05-13-2016 10:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey How you fixed it? I tried everything which is mentioned here but it's not helping much!!!
