Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
Failure while adding new hadoop services through Ambari.
Labels:
- Labels:
-
Apache Ambari
Expert Contributor
Created ‎03-22-2017 08:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ambari throws error while adding new services as below
[ambari-client-thread-47469] AbstractResourceProvider:97 - Error occured during recommendation org.apache.ambari.server.api.services.stackadvisor.StackAdvisorException: Error occured during stack advisor command invocation: Cannot create /var/run/ambari-server/stack-recommendations
1 ACCEPTED SOLUTION
Rising Star
Created ‎03-22-2017 08:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@nyadav
The permission for /var/run/ambari/server should be setup correctly
ll /var/run/ambari-server/ total 12 -rw-r--r-- 1 root root 6 Jan 4 05:10 ambari-server.pid drwxr-xr-x 4 root root 4096 Jan 4 05:26 bootstrap drwxr-xr-x 39 root root 4096 Jan 17 18:14 stack-recommendations
Check and correct your permissions and try again.
2 REPLIES 2
Rising Star
Created ‎03-22-2017 08:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@nyadav
The permission for /var/run/ambari/server should be setup correctly
ll /var/run/ambari-server/ total 12 -rw-r--r-- 1 root root 6 Jan 4 05:10 ambari-server.pid drwxr-xr-x 4 root root 4096 Jan 4 05:26 bootstrap drwxr-xr-x 39 root root 4096 Jan 17 18:14 stack-recommendations
Check and correct your permissions and try again.
Expert Contributor
Created ‎03-22-2017 12:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @prsingh, able to add service after correcting the permission
