Created 10-23-2015 09:38 PM
While starting the agent on a new node, I get the following:
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 133, in <module> File "/usr/lib/python2.6/site-packages/ambari_commons/os_check.py", line 115, in __init__ File "/usr/lib/python2.6/site-packages/ambari_commons/os_check.py", line 112, in initialize_data Exception: Couldn't load 'os_family.json' file
Created 10-23-2015 10:05 PM
fixed the issue. I realized that I uninstalled the ambari-server where some of the python libraries symobolic links where sill pointing to the ambari-server folder. recreated the symbolic links in the site-packages to point to ambari-agent folder and that fixed it.
Created 10-23-2015 09:43 PM
What OS are you running on?
Created 10-23-2015 10:05 PM
fixed the issue. I realized that I uninstalled the ambari-server where some of the python libraries symobolic links where sill pointing to the ambari-server folder. recreated the symbolic links in the site-packages to point to ambari-agent folder and that fixed it.
Created 01-25-2016 09:00 PM
@Hassan Do you have commands handy? I did yum -y install ambari-agent and it fixed it
Created 02-19-2016 09:39 AM
Just go and remove all ambari* from /usr/lib/python2.6/site-packages, then
yum remove ambari-agent
yum install ambari-agent
Created 09-12-2016 03:57 AM
I ran into similar issue and did what Miraj said, it works!