Support Questions

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

When attempting to add abari-agent: Can't find HostCleanup.py

avatar
Explorer

When trying to add an agent I get warning messages: 64534-screen-shot-2018-03-07-at-14602-pm.png

The command I am trying to execute:

python /usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py --silent --skip=users

When looking for the file i notice that ambari_agent doesn't exist under site-packages

[root@HOST usr]# ls /usr/lib/python2.6/site-packages/
resource_management  resource_monitoring

Did I install the ambari-agent incorrectly? How do i get HostCleanup.py?

[root@HOST usr]# yum info ambari-server
Loaded plugins: langpacks, ulninfo
Installed Packages
Name        : ambari-server
Arch        : x86_64
Version     : 2.6.1.3
Release     : 3
Size        : 781 M
Repo        : installed
From repo   : ambari-2.6.1.3
Summary     : Ambari Server
URL         : http://www.apache.org
License     : (c) Apache Software Foundation
Description : Maven Recipe: RPM Package.
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Leonardo Apolonio

You might be using Ambari 2.6.1.3

The "HostCleanup.py" script is moved to the following location:

# ls -l /usr/lib/ambari-agent/lib/ambari_agent/HostCleanup.py
-rwxr-xr-x. 1 root root 22464 Feb  6 13:03 /usr/lib/ambari-agent/lib/ambari_agent/HostCleanup.py

.

For the change details review please refer to: https://issues.apache.org/jira/browse/AMBARI-22830

Changes can be seen here: https://github.com/apache/ambari/pull/229/files

View solution in original post

1 REPLY 1

avatar
Master Mentor

@Leonardo Apolonio

You might be using Ambari 2.6.1.3

The "HostCleanup.py" script is moved to the following location:

# ls -l /usr/lib/ambari-agent/lib/ambari_agent/HostCleanup.py
-rwxr-xr-x. 1 root root 22464 Feb  6 13:03 /usr/lib/ambari-agent/lib/ambari_agent/HostCleanup.py

.

For the change details review please refer to: https://issues.apache.org/jira/browse/AMBARI-22830

Changes can be seen here: https://github.com/apache/ambari/pull/229/files