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.

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

Solved Go to solution

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

New Contributor

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

Accepted Solutions
Highlighted

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

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

4 REPLIES 4

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

Super 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.

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

New Contributor

Solved after reinstalling ambari agent. Thanks !

Highlighted

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

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

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

New Contributor

This worked. Thanks !

Don't have an account?
Coming from Hortonworks? Activate your account here