Search in sources :

Example 1 with ContainerExceptionMapProto

use of org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerExceptionMapProto in project hadoop by apache.

the class StopContainersResponsePBImpl method initFailedRequests.

private void initFailedRequests() {
    if (this.failedRequests != null) {
        return;
    }
    StopContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
    List<ContainerExceptionMapProto> protoList = p.getFailedRequestsList();
    this.failedRequests = new HashMap<ContainerId, SerializedException>();
    for (ContainerExceptionMapProto ce : protoList) {
        this.failedRequests.put(convertFromProtoFormat(ce.getContainerId()), convertFromProtoFormat(ce.getException()));
    }
}
Also used : ContainerId(org.apache.hadoop.yarn.api.records.ContainerId) ContainerExceptionMapProto(org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerExceptionMapProto) SerializedException(org.apache.hadoop.yarn.api.records.SerializedException) StopContainersResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersResponseProtoOrBuilder)

Example 2 with ContainerExceptionMapProto

use of org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerExceptionMapProto in project hadoop by apache.

the class GetContainerStatusesResponsePBImpl method initFailedRequests.

private void initFailedRequests() {
    if (this.failedRequests != null) {
        return;
    }
    GetContainerStatusesResponseProtoOrBuilder p = viaProto ? proto : builder;
    List<ContainerExceptionMapProto> protoList = p.getFailedRequestsList();
    this.failedRequests = new HashMap<ContainerId, SerializedException>();
    for (ContainerExceptionMapProto ce : protoList) {
        this.failedRequests.put(convertFromProtoFormat(ce.getContainerId()), convertFromProtoFormat(ce.getException()));
    }
}
Also used : ContainerId(org.apache.hadoop.yarn.api.records.ContainerId) GetContainerStatusesResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesResponseProtoOrBuilder) ContainerExceptionMapProto(org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerExceptionMapProto) SerializedException(org.apache.hadoop.yarn.api.records.SerializedException)

Example 3 with ContainerExceptionMapProto

use of org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerExceptionMapProto in project hadoop by apache.

the class StartContainersResponsePBImpl method initFailedContainers.

private void initFailedContainers() {
    if (this.failedContainers != null) {
        return;
    }
    StartContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
    List<ContainerExceptionMapProto> protoList = p.getFailedRequestsList();
    this.failedContainers = new HashMap<ContainerId, SerializedException>();
    for (ContainerExceptionMapProto ce : protoList) {
        this.failedContainers.put(convertFromProtoFormat(ce.getContainerId()), convertFromProtoFormat(ce.getException()));
    }
}
Also used : ContainerId(org.apache.hadoop.yarn.api.records.ContainerId) StartContainersResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProtoOrBuilder) ContainerExceptionMapProto(org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerExceptionMapProto) SerializedException(org.apache.hadoop.yarn.api.records.SerializedException)

Example 4 with ContainerExceptionMapProto

use of org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerExceptionMapProto in project hadoop by apache.

the class IncreaseContainersResourceResponsePBImpl method initFailedRequests.

private void initFailedRequests() {
    if (this.failedRequests != null) {
        return;
    }
    IncreaseContainersResourceResponseProtoOrBuilder p = viaProto ? proto : builder;
    List<ContainerExceptionMapProto> protoList = p.getFailedRequestsList();
    this.failedRequests = new HashMap<ContainerId, SerializedException>();
    for (ContainerExceptionMapProto ce : protoList) {
        this.failedRequests.put(convertFromProtoFormat(ce.getContainerId()), convertFromProtoFormat(ce.getException()));
    }
}
Also used : ContainerId(org.apache.hadoop.yarn.api.records.ContainerId) IncreaseContainersResourceResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceResponseProtoOrBuilder) ContainerExceptionMapProto(org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerExceptionMapProto) SerializedException(org.apache.hadoop.yarn.api.records.SerializedException)

Aggregations

ContainerId (org.apache.hadoop.yarn.api.records.ContainerId)4 SerializedException (org.apache.hadoop.yarn.api.records.SerializedException)4 ContainerExceptionMapProto (org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerExceptionMapProto)4 GetContainerStatusesResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesResponseProtoOrBuilder)1 IncreaseContainersResourceResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceResponseProtoOrBuilder)1 StartContainersResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProtoOrBuilder)1 StopContainersResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersResponseProtoOrBuilder)1