Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Ambari/Master IP location from cloudbreak/hdc

Solved Go to solution
Highlighted

Ambari/Master IP location from cloudbreak/hdc

New Contributor

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

Accepted Solutions

Re: Ambari/Master IP location from cloudbreak/hdc

New Contributor

Nevermind.. found it in docs:

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

will output differently with ip's.

1 REPLY 1

Re: Ambari/Master IP location from cloudbreak/hdc

New Contributor

Nevermind.. found it in docs:

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

will output differently with ip's.