Created 08-01-2017 01:18 PM
ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out: ==================== No handlers could be found for logger "ambari_agent.AmbariConfig"
No handlers could be found for logger "ambari_agent.AmbariConfig"
Ambari prefix dir %s not configured, can't continue
Created 08-01-2017 03:35 PM
Can you try to reinstall it on the node that's causing a problem,you will first need to stop the agent, then run the below commands.
# yum install epel-release # yum erase ambari-agent # yum install -y ambari-agent
Then edit the ambari-agent.ini, and under the Server change the host to your Ambari server FQDN
vi /etc/ambari-agent/conf/ambari-agent.ini
[server] hostname={your.ambari.server.hostname}
Then start the agent.
This should resolve the problem
Created 08-01-2017 01:39 PM
Please check if you have the following file present ?
/usr/lib/python2.6/site-packages/ambari_agent/AmbariConfig.py
.
Also if you have performed any ambari agent/server upgrade then chances are very high that these files might not be upgraded properly. If you still find any issue then try reinstalling ambari agent.
Created 08-01-2017 11:15 PM
Solved after reinstalling ambari agent. Thanks !
Created 08-01-2017 03:35 PM
Can you try to reinstall it on the node that's causing a problem,you will first need to stop the agent, then run the below commands.
# yum install epel-release # yum erase ambari-agent # yum install -y ambari-agent
Then edit the ambari-agent.ini, and under the Server change the host to your Ambari server FQDN
vi /etc/ambari-agent/conf/ambari-agent.ini
[server] hostname={your.ambari.server.hostname}
Then start the agent.
This should resolve the problem
Created 08-01-2017 11:16 PM
This worked. Thanks !