You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by sz...@apache.org on 2014/04/07 20:07:14 UTC
svn commit: r1585538 - in
/hadoop/common/trunk/hadoop-common-project/hadoop-common: CHANGES.txt
src/main/java/org/apache/hadoop/security/UserGroupInformation.java
Author: szetszwo
Date: Mon Apr 7 18:07:13 2014
New Revision: 1585538
URL: http://svn.apache.org/r1585538
Log:
HADOOP-10466. Lower the log level in UserGroupInformation. Contributed by Nicolas Liochon
Modified:
hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
Modified: hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt?rev=1585538&r1=1585537&r2=1585538&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt (original)
+++ hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt Mon Apr 7 18:07:13 2014
@@ -355,6 +355,9 @@ Release 2.4.1 - UNRELEASED
IMPROVEMENTS
+ HADOOP-10466. Lower the log level in UserGroupInformation. (Nicolas
+ Liochon via szetszwo)
+
OPTIMIZATIONS
BUG FIXES
Modified: hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java?rev=1585538&r1=1585537&r2=1585538&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java (original)
+++ hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java Mon Apr 7 18:07:13 2014
@@ -990,7 +990,9 @@ public class UserGroupInformation {
// register most recent relogin attempt
user.setLastLogin(now);
try {
- LOG.info("Initiating logout for " + getUserName());
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Initiating logout for " + getUserName());
+ }
synchronized (UserGroupInformation.class) {
// clear up the kerberos state. But the tokens are not cleared! As per
// the Java kerberos login module code, only the kerberos credentials
@@ -1001,7 +1003,9 @@ public class UserGroupInformation {
login = newLoginContext(
HadoopConfiguration.KEYTAB_KERBEROS_CONFIG_NAME, getSubject(),
new HadoopConfiguration());
- LOG.info("Initiating re-login for " + keytabPrincipal);
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Initiating re-login for " + keytabPrincipal);
+ }
start = Time.now();
login.login();
metrics.loginSuccess.add(Time.now() - start);
@@ -1042,7 +1046,9 @@ public class UserGroupInformation {
// register most recent relogin attempt
user.setLastLogin(now);
try {
- LOG.info("Initiating logout for " + getUserName());
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Initiating logout for " + getUserName());
+ }
//clear up the kerberos state. But the tokens are not cleared! As per
//the Java kerberos login module code, only the kerberos credentials
//are cleared
@@ -1052,7 +1058,9 @@ public class UserGroupInformation {
login =
newLoginContext(HadoopConfiguration.USER_KERBEROS_CONFIG_NAME,
getSubject(), new HadoopConfiguration());
- LOG.info("Initiating re-login for " + getUserName());
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("Initiating re-login for " + getUserName());
+ }
login.login();
setLogin(login);
} catch (LoginException le) {