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:
Thomas White 2009-12-03 01:14:15 +00:00
parent ef643fd06b
commit 8d6c5c41f2
2 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,8 @@ Trunk (unreleased changes)
HADOOP-6366. Reduce ivy console output to ovservable level (cos)
HADOOP-6400. Log errors getting Unix UGI. (Todd Lipcon via tomwhite)
OPTIMIZATIONS
BUG FIXES

View File

@ -244,6 +244,7 @@ public class UnixUserGroupInformation extends UserGroupInformation {
try {
userName = getUnixUserName();
} catch (Exception e) {
LOG.warn("Couldn't get unix username, using " + DEFAULT_USERNAME, e);
userName = DEFAULT_USERNAME;
}
@ -263,6 +264,7 @@ public class UnixUserGroupInformation extends UserGroupInformation {
try {
groupNames = getUnixGroups();
} catch (Exception e) {
LOG.warn("Couldn't get unix groups, using " + DEFAULT_GROUP, e);
groupNames = new String[1];
groupNames[0] = DEFAULT_GROUP;
}