Sometimes in order to build new stuff you have to destroy/remove/clean old stuff, but when you are on a Ambari server installation that fails for what ever reason when trying to configure your Hadoop Cluster starting for zero is not that easy because Ambari is not that good in tracking and erasing the failed installations. Not sure why this but 100% of the times i try to use the agent-cleanup.py does not work. I am not trying to reinvent the wheel but the script simply does not work.