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

(cherry picked from commit f735ad1b67)
This commit is contained in:
John Zhuge 2017-07-28 09:55:14 -07:00
parent e5ada740ff
commit a1682876c9
1 changed files with 2 additions and 0 deletions

View File

@ -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());