host_status=UNHEALTHY, host_state=HEALTHY

to create new topics or reply. | New User Registration

This topic contains 1 reply, has 2 voices, and was last updated by  Yusaku Sako 1 year ago.

  • Creator
  • #58017

    Hari Sekhon

    Can anyone explain the difference between host_status and host_state in the Ambari API, the API docs don’t differentiate them with meaningful description and as you can see below they seem in conflict for one of my hosts:

    curl -u $AMBARI_USER:$AMBARI_PASSWORD ‘http://<fqdn>:8080/api/v1/clusters/PoC/hosts/<fqdn>?fields=Hosts/host_state,Hosts/host_status’
    “href” : “http://<fqdn>:8080/api/v1/clusters/PoC/hosts/<fqdn>?fields=Hosts/host_state,Hosts/host_status”,
    “Hosts” : {
    “cluster_name” : “PoC”,
    “host_name” : “<fqdn>”,
    “host_state” : “HEALTHY”,
    “host_status” : “UNHEALTHY”


Viewing 1 replies (of 1 total)

You must be to reply to this topic. | Create Account

  • Author
  • #58136

    Yusaku Sako

    “host_state” represents the health of the host itself, independent of the components on the host. HEALTHY means that the host is heartbeating with the server. HEARTBEAT_LOST means the server has not been receiving heartbeats from the host.
    “host_status” represents the overall health of the host considering the status of the components on the host, such as “Master Down” (UNHEALTHY), “Slave Down” (ALERT).
    So, it is possible for a host to have host_status==UNHEALTHY and host_state==HEALTHY

    I’ve filed a JIRA [1] to improve the Ambari API documentation [2] for clarifications as the documentation is clearly lacking.


Viewing 1 replies (of 1 total)
Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.