Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

How to reinstall an ambari-agent in HDP cluster?

 
1 ACCEPTED SOLUTION

That's easy, if you are on CentOS/RHEL

yum remove ambari-agent ... make sure it's gone: yum list ambari-agent
yum install ambari-agent

Before removal save the config file if needed, it's in /etc/ambari-agent/conf/ambari-agent.ini. By the way, you can upgrade it by "yum upgrade" after providing a new repo file in /etc/yum.repos.d

View solution in original post

4 REPLIES 4

That's easy, if you are on CentOS/RHEL

yum remove ambari-agent ... make sure it's gone: yum list ambari-agent
yum install ambari-agent

Before removal save the config file if needed, it's in /etc/ambari-agent/conf/ambari-agent.ini. By the way, you can upgrade it by "yum upgrade" after providing a new repo file in /etc/yum.repos.d

There are already some service on that node before reinstall the agent,is that OK?

Usually no problems, provided port 8670 is available for the agent to listen to, and iptables or a firewall etc is not blocking the agent to connect to Ambari server on ports 8080, 8440 and 8441. Also need Python-2.6.x.

Ths,i'll have a try

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.