public_hostname_script & fix java_home
public_hostname_script & fix java_home

- gave Ambari a public_hostname_script to detect the public IP of each instance. This will make links in the Ambari UI use the public IP rather than the private IP which would not be routable unless you are on the 10.x network
- changed JAVA_HOME to point directly to /etc/alternatives/java_sdk. The previous method was finding the exact JAVA_HOME meaning that upgrades of java would require many changes, and potentially be risking if the packages removed a version. Use of alternatives is much easier.

seanorama/bdutil-archived,seanorama/bdutil-archived