You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ay...@apache.org on 2019/08/21 21:20:11 UTC
[hadoop] branch trunk updated: HDFS-14744. RBF: Non secured routers
should not log in error mode when UGI is default. Contributed by CR Hota.
This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new f9029c4 HDFS-14744. RBF: Non secured routers should not log in error mode when UGI is default. Contributed by CR Hota.
f9029c4 is described below
commit f9029c4070e8eb046b403f5cb6d0a132c5d58448
Author: Ayush Saxena <ay...@apache.org>
AuthorDate: Thu Aug 22 02:40:39 2019 +0530
HDFS-14744. RBF: Non secured routers should not log in error mode when UGI is default. Contributed by CR Hota.
---
.../hadoop/hdfs/server/federation/router/RouterClientProtocol.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterClientProtocol.java b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterClientProtocol.java
index e9cb547..4d8527f 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterClientProtocol.java
+++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterClientProtocol.java
@@ -1937,7 +1937,12 @@ public class RouterClientProtocol implements ClientProtocol {
owner = ugi.getUserName();
group = ugi.getPrimaryGroupName();
} catch (IOException e) {
- LOG.error("Cannot get remote user: {}", e.getMessage());
+ String msg = "Cannot get remote user: " + e.getMessage();
+ if (UserGroupInformation.isSecurityEnabled()) {
+ LOG.error(msg);
+ } else {
+ LOG.debug(msg);
+ }
}
}
long inodeId = 0;
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org