Currently I am trying to run the HostCleanup.py but it failed and I have no idea on how to resolve it, here is the error :
Traceback (most recent call last): File "./HostCleanup.py", line 710, in <module> main() File "./HostCleanup.py", line 701, in main h.do_cleanup(propMap) File "./HostCleanup.py", line 144, in do_cleanup procList = proc_map.get(PROCESS_KEY) AttributeError: 'NoneType' object has no attribute 'get'
And the OS I am using is Ubuntu 16.04.5 LTS.
The directory where I search for HostCleanup.py from /usr/lib/ambari-agent/lib/ambari/agent
Which version of Ambari are you using ? Is it 2.7.0 / 2.7.1 ?
Looks like it might be related to : https://issues.apache.org/jira/browse/AMBARI-23469
Can you please try the same on Ambari 2.7.3 which is latest. https://docs.hortonworks.com/HDPDocuments/Ambari-18.104.22.168/bk_ambari-upgrade-major/content/ambari_upgr...