hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jzh...@apache.org
Subject hadoop git commit: HADOOP-14678. AdlFilesystem#initialize swallows exception when getting user name. Contributed by John Zhuge.
Date Fri, 28 Jul 2017 16:54:53 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 e29d1c75e -> ba94c68e0


HADOOP-14678. AdlFilesystem#initialize swallows exception when getting user name. Contributed
by John Zhuge.

(cherry picked from commit f735ad1b67ed82d9b11b1afd7ae39035a6aed18b)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/ba94c68e
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/ba94c68e
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/ba94c68e

Branch: refs/heads/branch-2
Commit: ba94c68e0b67d5c4b8e6b1b33a817ae685b586dd
Parents: e29d1c7
Author: John Zhuge <jzhuge@apache.org>
Authored: Fri Jul 28 09:51:32 2017 -0700
Committer: John Zhuge <jzhuge@apache.org>
Committed: Fri Jul 28 09:51:32 2017 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/fs/adl/AdlFileSystem.java      | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/ba94c68e/hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlFileSystem.java
----------------------------------------------------------------------
diff --git a/hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlFileSystem.java
b/hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlFileSystem.java
index e63f115..0de538e 100644
--- a/hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlFileSystem.java
+++ b/hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlFileSystem.java
@@ -129,6 +129,8 @@ public class AdlFileSystem extends FileSystem {
       userName = UserGroupInformation.getCurrentUser().getShortUserName();
     } catch (IOException e) {
       userName = "hadoop";
+      LOG.warn("Got exception when getting Hadoop user name."
+          + " Set the user name to '" + userName + "'.", e);
     }
 
     this.setWorkingDirectory(getHomeDirectory());


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message