From 03f3c8aed27f73a6aacecc14b41beb1250d4f2f0 Mon Sep 17 00:00:00 2001 From: Eric Yang Date: Fri, 15 Mar 2019 18:04:04 -0400 Subject: [PATCH] YARN-4404. Corrected typo in javadoc. Contributed by Yesha Vora --- .../hadoop/yarn/server/resourcemanager/RMServerUtils.java | 2 +- .../server/resourcemanager/scheduler/SchedulerUtils.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/RMServerUtils.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/RMServerUtils.java index 2c1cbbe1af..7fb7476dad 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/RMServerUtils.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/RMServerUtils.java @@ -240,7 +240,7 @@ private static String validateContainerIdAndVersion( } /** - * Utility method to validate a list resource requests, by insuring that the + * Utility method to validate a list resource requests, by ensuring that the * requested memory/vcore is non-negative and not greater than max */ public static void normalizeAndValidateRequests(List ask, diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerUtils.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerUtils.java index 88796db96f..73aa2c4a1f 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerUtils.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/SchedulerUtils.java @@ -195,7 +195,7 @@ private static ContainerStatus createAbnormalContainerStatus( } /** - * Utility method to normalize a resource request, by insuring that the + * Utility method to normalize a resource request, by ensuring that the * requested memory is a multiple of minMemory and is not zero. */ @VisibleForTesting @@ -210,7 +210,7 @@ public static void normalizeRequest( } /** - * Utility method to normalize a resource request, by insuring that the + * Utility method to normalize a resource request, by ensuring that the * requested memory is a multiple of increment resource and is not zero. * * @return normalized resource @@ -304,7 +304,7 @@ public static void normalizeAndValidateRequest(ResourceRequest resReq, } /** - * Utility method to validate a resource request, by insuring that the + * Utility method to validate a resource request, by ensuring that the * requested memory/vcore is non-negative and not greater than max * * @throws InvalidResourceRequestException when there is invalid request