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.

Amabri REST API check service status

Highlighted

Amabri REST API check service status

New Contributor

Hi Guys,

I am trying to check the service status with Ambari rest API, However I am not able to find any documention which explain thing in great details.

For example, If I hit following REST URL

http://localhost:8080/api/v1/clusters/Sandbox/services/HDFS

I get following output

"maintenance_state": "OFF",
    "repository_state": "CURRENT",
    "service_name": "HDFS",
    "state": "STARTED"
  },
  "alerts_summary": {
    "CRITICAL": 0,
    "MAINTENANCE": 8,
    "OK": 293,
    "UNKNOWN": 4,
    "WARNING": 0
  },

However, I am not sure how to interpret this things. Should I care about MAINTENANCE, UNKNOWN and WARNING and just checking that nothing CRITICAL is good enough.

This is mainly for developers to understand and track the time how much any service is down.

2 REPLIES 2

Re: Amabri REST API check service status

Mentor

@Gaurang Shah

Could this be what you are looking for?

Status of HDP components using Ambari API

HTH

Re: Amabri REST API check service status

New Contributor

not exactly, as I mentioned state could either be started or installed only. I was to see if service is facing any issue,