Skip to content

Commit 5d6efc2

Browse files
committed
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
1 parent 87477a7 commit 5d6efc2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Trunk (unreleased changes)
3838

3939
HADOOP-6366. Reduce ivy console output to ovservable level (cos)
4040

41+
HADOOP-6400. Log errors getting Unix UGI. (Todd Lipcon via tomwhite)
42+
4143
OPTIMIZATIONS
4244

4345
BUG FIXES

src/java/org/apache/hadoop/security/UnixUserGroupInformation.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ public static UnixUserGroupInformation login() throws LoginException {
244244
try {
245245
userName = getUnixUserName();
246246
} catch (Exception e) {
247+
LOG.warn("Couldn't get unix username, using " + DEFAULT_USERNAME, e);
247248
userName = DEFAULT_USERNAME;
248249
}
249250

@@ -263,6 +264,7 @@ public static UnixUserGroupInformation login() throws LoginException {
263264
try {
264265
groupNames = getUnixGroups();
265266
} catch (Exception e) {
267+
LOG.warn("Couldn't get unix groups, using " + DEFAULT_GROUP, e);
266268
groupNames = new String[1];
267269
groupNames[0] = DEFAULT_GROUP;
268270
}

0 commit comments

Comments
 (0)