While the Ambari server and ambari agents are running on each host:
Download relocate_host_component.py from /var/lib/ambari-server/resources/scripts on the Ambari server to /usr/bin/ on each failover host.
Download hadoop.sh from /var/lib/ambari-server/resources/scripts on the Ambari server and replace hadoop.sh in /usr/share/cluster/ on each failover host.