HADOOP-14678. AdlFilesystem#initialize swallows exception when getting user name. Contributed by John Zhuge.
(cherry picked from commit f735ad1b67ed82d9b11b1afd7ae39035a6aed18b)
This commit is contained in:
parent
e29d1c75ea
commit
ba94c68e0b
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user