Script to generate hosts file from Cloudera Manager API