Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to solve ambari-agent start failed: No handlers could be found for logger "ambari_agent.AmbariConfig"

avatar
Explorer

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

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Hema Penumatsa

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

View solution in original post

4 REPLIES 4

avatar
Master Mentor

@Hema Penumatsa

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.

avatar
Explorer

Solved after reinstalling ambari agent. Thanks !

avatar
Master Mentor

@Hema Penumatsa

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

avatar
Explorer

This worked. Thanks !