Hi,
I automate cluster creation using hdc command. When cluster is up and running I can pull details of the cluster using
hdc describe-cluster --cluster-name my_cluster
but it returns the same json I used to set this cluster up, with no details about hostnames/ips of each worker/master/compute server.
In order to schedule some jobs I need to know how to connect to edge server (here master).
I have a workaround that uses your proxy
curl https://my-hortonworks-hdcloud/my_cluster/services/hdfs/ --insecure -v --user 'admin:password'
and I extract ip-123-456-789-012.example.com domain and based on that I can get private ip of one of the master servers that runs namenode. But I guess there should be more elegant way.
Hints?