hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomwh...@apache.org
Subject svn commit: r886645 - in /hadoop/common/trunk: CHANGES.txt src/java/org/apache/hadoop/security/UnixUserGroupInformation.java
Date Thu, 03 Dec 2009 01:14:16 GMT
Author: tomwhite
Date: Thu Dec  3 01:14:15 2009
New Revision: 886645

URL: http://svn.apache.org/viewvc?rev=886645&view=rev
Log:
HADOOP-6400. Log errors getting Unix UGI. Contributed by Todd Lipcon.

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/java/org/apache/hadoop/security/UnixUserGroupInformation.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=886645&r1=886644&r2=886645&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Thu Dec  3 01:14:15 2009
@@ -38,6 +38,8 @@
 
     HADOOP-6366. Reduce ivy console output to ovservable level (cos)
 
+    HADOOP-6400. Log errors getting Unix UGI. (Todd Lipcon via tomwhite)
+
   OPTIMIZATIONS
 
   BUG FIXES

Modified: hadoop/common/trunk/src/java/org/apache/hadoop/security/UnixUserGroupInformation.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/security/UnixUserGroupInformation.java?rev=886645&r1=886644&r2=886645&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/security/UnixUserGroupInformation.java
(original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/security/UnixUserGroupInformation.java
Thu Dec  3 01:14:15 2009
@@ -244,6 +244,7 @@
       try {
         userName =  getUnixUserName();
       } catch (Exception e) {
+        LOG.warn("Couldn't get unix username, using " + DEFAULT_USERNAME, e);
         userName = DEFAULT_USERNAME;
       }
 
@@ -263,6 +264,7 @@
       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;
       }



Mime
View raw message