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 e63f115256..0de538e4de 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 void initialize(URI storeUri, Configuration conf) throws IOException { 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());