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.

HostCleanup.py Error

HostCleanup.py Error

New Contributor

Hi all,

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

2 REPLIES 2

Re: HostCleanup.py Error

Super Mentor

@Arif Ishak

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-2.7.3.0/bk_ambari-upgrade-major/content/ambari_upgr...

Re: HostCleanup.py Error

New Contributor

hi @Arif Ishak, did you solve this issue ? I have the same error and I can't find the solution.

Tks!