From 08d69d91f2f09a3ee7711f9d56a535787b30ffd2 Mon Sep 17 00:00:00 2001 From: Eric Yang Date: Tue, 6 Nov 2018 14:46:05 -0500 Subject: [PATCH] YARN-8957. Add Serializable interface to ComponentContainers. Contributed by Zhankun Tang --- .../hadoop/yarn/service/api/records/ComponentContainers.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/api/records/ComponentContainers.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/api/records/ComponentContainers.java index 9ef8b9f0695..7c8ab4a2a46 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/api/records/ComponentContainers.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/api/records/ComponentContainers.java @@ -24,6 +24,7 @@ import io.swagger.annotations.ApiModelProperty; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability; +import java.io.Serializable; import java.util.List; /** @@ -33,7 +34,7 @@ import java.util.List; @InterfaceStability.Unstable @ApiModel(description = "Containers of a component.") @JsonInclude(JsonInclude.Include.NON_NULL) -public class ComponentContainers { +public class ComponentContainers implements Serializable { private static final long serialVersionUID = -1456748479118874991L;