service element
Type: | apiService |
A service (such as HDFS, MapReduce, HBase) runs in a cluster. It has roles, which are the actual entities (NameNode, DataNodes, etc.) that perform the service's functions.
HDFS services and health checks
In CDH4, HDFS services may not present any health checks. This will happen if the service has more than one nameservice configured. In those cases, the health information will be available by fetching information about the nameservices instead.The health summary is still available, and reflects a service-wide summary.
Example JSON
{
"name" : "...",
"type" : "...",
"clusterRef" : {
"clusterName" : "..."
},
"serviceState" : "HISTORY_NOT_AVAILABLE",
"healthSummary" : "DISABLED",
"configStale" : false,
"healthChecks" : [ {
"name" : "...",
"summary" : "DISABLED"
}, ... ],
"serviceUrl" : "...",
"maintenanceMode" : false,
"maintenanceOwners" : [ "CLUSTER", ... ],
"config" : {
"roleTypeConfigs" : [ {
"roleType" : "...",
"items" : [ {
"name" : "...",
"value" : "...",
"required" : false,
"default" : "...",
"displayName" : "...",
"description" : "...",
"relatedName" : "...",
"validationState" : "OK",
"validationMessage" : "..."
}, ... ]
}, ... ],
"items" : [ {
"name" : "...",
"value" : "...",
"required" : false,
"default" : "...",
"displayName" : "...",
"description" : "...",
"relatedName" : "...",
"validationState" : "OK",
"validationMessage" : "..."
}, ... ]
},
"roles" : [ {
"name" : "...",
"type" : "...",
"hostRef" : {
"hostId" : "..."
},
"serviceRef" : {
"clusterName" : "...",
"serviceName" : "..."
},
"roleState" : "HISTORY_NOT_AVAILABLE",
"commissionState" : "COMMISSIONED",
"healthSummary" : "DISABLED",
"configStale" : false,
"healthChecks" : [ {
"name" : "...",
"summary" : "DISABLED"
}, ... ],
"haStatus" : "ACTIVE",
"roleUrl" : "...",
"maintenanceMode" : false,
"maintenanceOwners" : [ "CLUSTER", ... ],
"config" : {
"items" : [ {
"name" : "...",
"value" : "...",
"required" : false,
"default" : "...",
"displayName" : "...",
"description" : "...",
"relatedName" : "...",
"validationState" : "OK",
"validationMessage" : "..."
}, ... ]
}
}, ... ],
"displayName" : "..."
}