Author: suresh
Date: Tue Oct 16 16:57:44 2012
New Revision: 1398886
URL: http://svn.apache.org/viewvc?rev=1398886&view=rev
Log:
HADOOP-8932. Merging change 1398883 from trunk.
Modified:
hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/JniBasedUnixGroupsMapping.java
hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/JniBasedUnixGroupsNetgroupMapping.java
Modified:
hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt?rev=1398886&r1=1398885&r2=1398886&view=diff
==============================================================================
---
hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
(original)
+++
hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/CHANGES.txt
Tue Oct 16 16:57:44 2012
@@ -17,6 +17,9 @@ Release 0.23.5 - UNRELEASED
HADOOP-8851. Use -XX:+HeapDumpOnOutOfMemoryError JVM option in the forked
tests. (Ivan A. Veselovsky via atm)
+ HADOOP-8923. JNI-based user-group mapping modules can be too chatty on
+ lookup failures. (Kihwal Lee via suresh)
+
OPTIMIZATIONS
HADOOP-8819. Incorrectly & is used instead of && in some file system
Modified:
hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/JniBasedUnixGroupsMapping.java
URL:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/JniBasedUnixGroupsMapping.java?rev=1398886&r1=1398885&r2=1398886&view=diff
==============================================================================
---
hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/JniBasedUnixGroupsMapping.java
(original)
+++
hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/JniBasedUnixGroupsMapping.java
Tue Oct 16 16:57:44 2012
@@ -48,7 +48,7 @@ public class JniBasedUnixGroupsMapping i
throw new RuntimeException("Bailing out since native library couldn't " +
"be loaded");
}
- LOG.info("Using JniBasedUnixGroupsMapping for Group resolution");
+ LOG.debug("Using JniBasedUnixGroupsMapping for Group resolution");
}
@Override
@@ -57,7 +57,11 @@ public class JniBasedUnixGroupsMapping i
try {
groups = getGroupForUser(user);
} catch (Exception e) {
- LOG.warn("Error getting groups for " + user, e);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Error getting groups for " + user, e);
+ } else {
+ LOG.info("Error getting groups for " + user + ": " + e.getMessage());
+ }
}
return Arrays.asList(groups);
}
Modified:
hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/JniBasedUnixGroupsNetgroupMapping.java
URL:
http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/JniBasedUnixGroupsNetgroupMapping.java?rev=1398886&r1=1398885&r2=1398886&view=diff
==============================================================================
---
hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/JniBasedUnixGroupsNetgroupMapping.java
(original)
+++
hadoop/common/branches/branch-0.23/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/JniBasedUnixGroupsNetgroupMapping.java
Tue Oct 16 16:57:44 2012
@@ -52,7 +52,7 @@ public class JniBasedUnixGroupsNetgroupM
throw new RuntimeException("Bailing out since native library couldn't " +
"be loaded");
}
- LOG.info("Using JniBasedUnixGroupsNetgroupMapping for Netgroup
resolution");
+ LOG.debug("Using JniBasedUnixGroupsNetgroupMapping for Netgroup
resolution");
}
/**
@@ -115,7 +115,12 @@ public class JniBasedUnixGroupsNetgroupM
// JNI code does not expect '@' at the begining of the group name
users = getUsersForNetgroupJNI(netgroup.substring(1));
} catch (Exception e) {
- LOG.warn("error getting users for netgroup " + netgroup, e);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Error getting users for netgroup " + netgroup, e);
+ } else {
+ LOG.info("Error getting users for netgroup " + netgroup +
+ ": " + e.getMessage());
+ }
}
if (users != null && users.length != 0) {
return Arrays.asList(users);