HADOOP-6400. Log errors getting Unix UGI. Contributed by Todd Lipcon.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@886645 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ef643fd06b
commit
8d6c5c41f2
@ -38,6 +38,8 @@ Trunk (unreleased changes)
|
|||||||
|
|
||||||
HADOOP-6366. Reduce ivy console output to ovservable level (cos)
|
HADOOP-6366. Reduce ivy console output to ovservable level (cos)
|
||||||
|
|
||||||
|
HADOOP-6400. Log errors getting Unix UGI. (Todd Lipcon via tomwhite)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -244,6 +244,7 @@ public class UnixUserGroupInformation extends UserGroupInformation {
|
|||||||
try {
|
try {
|
||||||
userName = getUnixUserName();
|
userName = getUnixUserName();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
LOG.warn("Couldn't get unix username, using " + DEFAULT_USERNAME, e);
|
||||||
userName = DEFAULT_USERNAME;
|
userName = DEFAULT_USERNAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -263,6 +264,7 @@ public class UnixUserGroupInformation extends UserGroupInformation {
|
|||||||
try {
|
try {
|
||||||
groupNames = getUnixGroups();
|
groupNames = getUnixGroups();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
LOG.warn("Couldn't get unix groups, using " + DEFAULT_GROUP, e);
|
||||||
groupNames = new String[1];
|
groupNames = new String[1];
|
||||||
groupNames[0] = DEFAULT_GROUP;
|
groupNames[0] = DEFAULT_GROUP;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user