You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Akhil PB (JIRA)" <ji...@apache.org> on 2019/01/21 10:36:00 UTC

[jira] [Commented] (YARN-8711) YARN UI2 : Display component state in Component list and details page for a Service

    [ https://issues.apache.org/jira/browse/YARN-8711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16747833#comment-16747833 ] 

Akhil PB commented on YARN-8711:
--------------------------------

HiĀ [~suma.shivaprasad], Could you please provide which API gives the state of the components?

We are displaying the service state in the service info page. But the states are not available for the service components from the API itself.

For example: The component API
{{http://localhost:8198/ws/v2/timeline/clusters/yarn-cluster/apps/application_1548064352792_0002/entities/COMPONENT?fields=ALL&type=COMPONENT&_=1548065347971}} gives 
{code}
[{
	"metrics": [{
		"type": "SINGLE_VALUE",
		"id": "ContainersDesired",
		"aggregationOp": "NOP",
		"values": {
			"1548066418807": 2
		}
	}, {
		"type": "SINGLE_VALUE",
		"id": "ContainersFailed",
		"aggregationOp": "NOP",
		"values": {
			"1548066418807": 0
		}
	}, {
		"type": "SINGLE_VALUE",
		"id": "ContainersRequested",
		"aggregationOp": "NOP",
		"values": {
			"1548066418807": 0
		}
	}, {
		"type": "SINGLE_VALUE",
		"id": "ContainersRunning",
		"aggregationOp": "NOP",
		"values": {
			"1548066418807": 2
		}
	}, {
		"type": "SINGLE_VALUE",
		"id": "ContainersDiskFailure",
		"aggregationOp": "NOP",
		"values": {
			"1548066418807": 0
		}
	}, {
		"type": "SINGLE_VALUE",
		"id": "ContainersReady",
		"aggregationOp": "NOP",
		"values": {
			"1548066418807": 0
		}
	}, {
		"type": "SINGLE_VALUE",
		"id": "SurplusContainers",
		"aggregationOp": "NOP",
		"values": {
			"1548066418807": 1
		}
	}, {
		"type": "SINGLE_VALUE",
		"id": "ContainersSucceeded",
		"aggregationOp": "NOP",
		"values": {
			"1548066418807": 0
		}
	}, {
		"type": "SINGLE_VALUE",
		"id": "ContainersPreempted",
		"aggregationOp": "NOP",
		"values": {
			"1548066418807": 0
		}
	}],
	"events": [],
	"createdtime": 1548066389875,
	"idprefix": 0,
	"id": "sleeper",
	"type": "COMPONENT",
	"info": {
		"LAUNCH_COMMAND": "sleep 900000",
		"UID": "yarn-cluster!application_1548064352792_0002!COMPONENT!0!sleeper",
		"RESOURCE_MEMORY": "256",
		"RUN_PRIVILEGED_CONTAINER": "false",
		"RESOURCE_CPU": 1,
		"FROM_ID": "yarn-cluster!dr.who!sleeper-service-4!1548066383571!application_1548064352792_0002!COMPONENT!0!sleeper"
	},
	"configs": {},
	"isrelatedto": {},
	"relatesto": {}
}]
{code}

There is no state info available in the info object.
And component instances are displayed with states in the table.

cc [~sunilg]

> YARN UI2 : Display component state in Component list and details page for a Service
> -----------------------------------------------------------------------------------
>
>                 Key: YARN-8711
>                 URL: https://issues.apache.org/jira/browse/YARN-8711
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn-ui-v2
>            Reporter: Suma Shivaprasad
>            Assignee: Akhil PB
>            Priority: Major
>
> YARN-8488 adds component states and service state = SUCCEEDED. Users could then track overall component status on the UI for terminating jobs. 
> cc [~sunil.govind@gmail.com]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org