YARN-8000. Yarn Service component instance name shows up as component name in container record. Contributed by Chandni Singh

This commit is contained in:
Billie Rinaldi 2018-03-09 08:50:28 -08:00
parent 32fa3a63e0
commit 4f395063bb
3 changed files with 10 additions and 10 deletions

View File

@ -72,7 +72,7 @@ Note, lifetime value of -1 means unlimited lifetime.
"state": "READY",
"launch_time": 1504051512412,
"bare_host": "10.22.8.143",
"component_name": "hello-0"
"component_instance_name": "hello-0"
},
{
"id": "container_e03_1503963985568_0002_01_000002",
@ -81,7 +81,7 @@ Note, lifetime value of -1 means unlimited lifetime.
"state": "READY",
"launch_time": 1504051536450,
"bare_host": "10.22.8.143",
"component_name": "hello-1"
"component_instance_name": "hello-1"
}
],
"launch_command": "./start_nginx.sh",

View File

@ -173,20 +173,20 @@ public void setState(ContainerState state) {
}
/**
* Name of the component that this container instance belongs to.
* Name of the component instance that this container instance belongs to.
**/
public Container componentName(String componentName) {
this.componentInstanceName = componentName;
public Container componentInstanceName(String componentInstanceName) {
this.componentInstanceName = componentInstanceName;
return this;
}
@ApiModelProperty(example = "null", value = "Name of the component that this container instance belongs to.")
@JsonProperty("component_name")
@ApiModelProperty(example = "null", value = "Name of the component instance that this container instance belongs to.")
@JsonProperty("component_instance_name")
public String getComponentInstanceName() {
return componentInstanceName;
}
@XmlElement(name = "component_name")
@XmlElement(name = "component_instance_name")
public void setComponentInstanceName(String componentInstanceName) {
this.componentInstanceName = componentInstanceName;
}

View File

@ -441,7 +441,7 @@ Note, lifetime value of -1 means unlimited lifetime.
"state": "READY",
"launch_time": 1504051512412,
"bare_host": "10.22.8.143",
"component_name": "hello-0"
"component_instance_name": "hello-0"
},
{
"id": "container_e03_1503963985568_0002_01_000002",
@ -450,7 +450,7 @@ Note, lifetime value of -1 means unlimited lifetime.
"state": "READY",
"launch_time": 1504051536450,
"bare_host": "10.22.8.143",
"component_name": "hello-1"
"component_instance_name": "hello-1"
}
],
"launch_command": "./start_nginx.sh",