hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xg...@apache.org
Subject [31/50] [abbrv] hadoop git commit: HADOOP-14678. AdlFilesystem#initialize swallows exception when getting user name. Contributed by John Zhuge.
Date Mon, 31 Jul 2017 16:01:03 GMT
HADOOP-14678. AdlFilesystem#initialize swallows exception when getting user name. Contributed
by John Zhuge.


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

Branch: refs/heads/YARN-5734
Commit: f735ad1b67ed82d9b11b1afd7ae39035a6aed18b
Parents: 369f731
Author: John Zhuge <jzhuge@cloudera.com>
Authored: Sat Jul 22 12:51:37 2017 -0700
Committer: John Zhuge <jzhuge@apache.org>
Committed: Fri Jul 28 09:46:54 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/f735ad1b/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