Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How to reinstall an ambari-agent in HDP cluster?

avatar
New Member
 
1 ACCEPTED SOLUTION

avatar
Master Guru

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

avatar
Master Guru

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

avatar
New Member

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

avatar
Master Guru

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.

avatar
New Member

Ths,i'll have a try