throw runtime exception if cannot connect to ambari