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.

ambari-agent start failed

ambari-agent start failed

New Contributor

im trying to start ambari-agent but im getting below error. so please explain how ro resolve this issue.

[root@VerHad1 ~]# ambari-agent start Verifying Python version compatibility... Using python /usr/bin/python2.6 Checking for previously running Ambari Agent... Starting ambari-agent Verifying ambari-agent process status... ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out: ==================== File "/usr/lib/python2.6/site-packages/ambari_agent/NetUtil.py", line 21, in <module> from HeartbeatHandlers import HeartbeatStopHandlers File "/usr/lib/python2.6/site-packages/ambari_agent/HeartbeatHandlers.py", line 21, in <module> from ambari_commons.exceptions import FatalException File "/usr/lib/python2.6/site-packages/ambari_commons/__init__.py", line 21, in <module> """ File "/usr/lib/python2.6/site-packages/ambari_commons/os_check.py", line 161, in <module> File "/usr/lib/python2.6/site-packages/ambari_commons/os_check.py", line 143, in __init__ File "/usr/lib/python2.6/site-packages/ambari_commons/os_check.py", line 140, in initialize_data Exception: Couldn't load 'os_family.json' file ==================== Agent out at: /var/log/ambari-agent/ambari-agent.out Agent log at: /var/log/ambari-agent/ambari-agent.log [root@VerHad1 ~]# ambari-agent status ambari-agent currently not running

5 REPLIES 5

Re: ambari-agent start failed

I think you need to reinstall the ambari-agent.

  • remove all ambari* from /usr/lib/python2.6/site-packages
  • remove ambari-agent by "yum remove ambari-agent"
  • Install "yum install ambari-agent"
  • kill any ambari_agent processes if running already.
  • ambari-agent start

Re: ambari-agent start failed

We just had the same issue, because the machine also had ambari-server installed. After uninstalling both ambari-agent and ambari-server and following your steps the thing worked! After that we had a "resource_management" error fixed by this post, and ambari-agent was finally working well!

Re: ambari-agent start failed

New Contributor

Hi pandit,

I removed all ambari-agent packages and reinstalled but I'm facing same issues.

Re: ambari-agent start failed

Super Guru
@kishore sanchina

Please check below symlinks in your environment, try to fix it if there is any difference.

[root@sandbox ~]# ls -lrt /usr/lib/python2.6/site-packages/|grep ambari
lrwxrwxrwx  1 root root      41 2015-10-27 12:26 ambari_commons -> /usr/lib/ambari-server/lib/ambari_commons
lrwxrwxrwx  1 root root      46 2015-10-27 12:26 resource_management -> /usr/lib/ambari-server/lib/resource_management
lrwxrwxrwx  1 root root      40 2015-10-27 12:26 ambari_jinja2 -> /usr/lib/ambari-server/lib/ambari_jinja2
lrwxrwxrwx  1 root root      44 2015-10-27 12:26 ambari_simplejson -> /usr/lib/ambari-server/lib/ambari_simplejson
drwxr-xr-x  2 root root    4096 2016-06-02 14:12 ambari_server
drwxr-xr-x  4 root root    4096 2016-06-02 14:14 ambari_agent

Re: ambari-agent start failed

New Contributor

@Kuldeep Kulkarni

[root@VerHad1 ~]# ls -lrt /usr/lib/python2.6/site-packages/|grep ambari lrwxrwxrwx 1 root root 46 Jun 17 19:55 resource_management -> /usr/lib/ambari-server/lib/resource_management lrwxrwxrwx 1 root root 41 Jul 1 12:08 ambari_commons -> /usr/lib/ambari-server/lib/ambari_commons lrwxrwxrwx 1 root root 40 Jul 1 12:08 ambari_jinja2 -> /usr/lib/ambari-server/lib/ambari_jinja2 lrwxrwxrwx 1 root root 44 Jul 1 12:08 ambari_simplejson -> /usr/lib/ambari-server/lib/ambari_simplejson drwxr-xr-x 2 root root 4096 Jul 22 20:52 ambari_server drwxr-xr-x 4 root root 4096 Jul 25 10:43 ambari_agent

looks like everything correct but im facing same error.