Reply
New Contributor
Posts: 1
Registered: ‎01-24-2017

Is there any api get the hostname of a active jobtracker running on a particular cluster ?

Is there any api get the hostname of a active jobtracker running on a particular cluster ? It was needed for monitoring purpose.

Highlighted
Cloudera Employee
Posts: 17
Registered: ‎01-12-2017

Re: Is there any api get the hostname of a active jobtracker running on a particular cluster ?

Please take a look at https://cloudera.github.io/cm_api/apidocs/v10/path__clusters_-clusterName-_services_-serviceName-_ro....

 

For "type": "JOBTRACKER" in the returned roles list, there is "haStatus": "ACTIVE" for you to identify which job tracker is active, and"hostRef": {"hostId": "68a36742-f98d-415b-9a77-0a82a0c2b8b8"} which points to host ID.

 

Announcements