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.

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 ?

New Contributor

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

1 REPLY 1

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

Cloudera Employee

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.