Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Ambari/Master IP location from cloudbreak/hdc

avatar

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?

1 ACCEPTED SOLUTION

avatar

Nevermind.. found it in docs:

hdc describe-cluster instances --cluster-name transetl --output table

will output differently with ip's.

View solution in original post

1 REPLY 1

avatar

Nevermind.. found it in docs:

hdc describe-cluster instances --cluster-name transetl --output table

will output differently with ip's.