From d8d3325d2f6b337c6befc8d6711886d52e756ece Mon Sep 17 00:00:00 2001 From: slfan1989 <55643692+slfan1989@users.noreply.github.com> Date: Mon, 8 Aug 2022 05:05:39 +0800 Subject: [PATCH] HADOOP-18387. Fix incorrect placeholder in hadoop-common (#4679). Contributed by fanshilun. --- .../java/org/apache/hadoop/fs/DelegationTokenRenewer.java | 5 ++--- .../yarn/appcatalog/application/YarnServiceClient.java | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/DelegationTokenRenewer.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/DelegationTokenRenewer.java index 6f6e3041065..794855508c6 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/DelegationTokenRenewer.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/DelegationTokenRenewer.java @@ -256,9 +256,8 @@ public class DelegationTokenRenewer try { action.cancel(); } catch (InterruptedException ie) { - LOG.error("Interrupted while canceling token for " + fs.getUri() - + "filesystem"); - LOG.debug("Exception in removeRenewAction: {}", ie); + LOG.error("Interrupted while canceling token for {} filesystem.", fs.getUri()); + LOG.debug("Exception in removeRenewAction.", ie); } } } diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-catalog/hadoop-yarn-applications-catalog-webapp/src/main/java/org/apache/hadoop/yarn/appcatalog/application/YarnServiceClient.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-catalog/hadoop-yarn-applications-catalog-webapp/src/main/java/org/apache/hadoop/yarn/appcatalog/application/YarnServiceClient.java index 3a6c67d7370..79838a9e4fb 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-catalog/hadoop-yarn-applications-catalog-webapp/src/main/java/org/apache/hadoop/yarn/appcatalog/application/YarnServiceClient.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-catalog/hadoop-yarn-applications-catalog-webapp/src/main/java/org/apache/hadoop/yarn/appcatalog/application/YarnServiceClient.java @@ -61,7 +61,7 @@ public class YarnServiceClient { try { asc = new ApiServiceClient(conf); } catch (Exception e) { - LOG.error("Error initialize YARN Service Client: {}", e); + LOG.error("Error initialize YARN Service Client.", e); } }