HADOOP-10466. Lower the log level in UserGroupInformation. Contributed by Nicolas Liochon
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1585538 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4eacde67f8
commit
aea35d93e3
@ -355,6 +355,9 @@ Release 2.4.1 - UNRELEASED
|
|||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
|
|
||||||
|
HADOOP-10466. Lower the log level in UserGroupInformation. (Nicolas
|
||||||
|
Liochon via szetszwo)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -990,7 +990,9 @@ public synchronized void reloginFromKeytab()
|
|||||||
// register most recent relogin attempt
|
// register most recent relogin attempt
|
||||||
user.setLastLogin(now);
|
user.setLastLogin(now);
|
||||||
try {
|
try {
|
||||||
LOG.info("Initiating logout for " + getUserName());
|
if (LOG.isDebugEnabled()) {
|
||||||
|
LOG.debug("Initiating logout for " + getUserName());
|
||||||
|
}
|
||||||
synchronized (UserGroupInformation.class) {
|
synchronized (UserGroupInformation.class) {
|
||||||
// clear up the kerberos state. But the tokens are not cleared! As per
|
// clear up the kerberos state. But the tokens are not cleared! As per
|
||||||
// the Java kerberos login module code, only the kerberos credentials
|
// the Java kerberos login module code, only the kerberos credentials
|
||||||
@ -1001,7 +1003,9 @@ public synchronized void reloginFromKeytab()
|
|||||||
login = newLoginContext(
|
login = newLoginContext(
|
||||||
HadoopConfiguration.KEYTAB_KERBEROS_CONFIG_NAME, getSubject(),
|
HadoopConfiguration.KEYTAB_KERBEROS_CONFIG_NAME, getSubject(),
|
||||||
new HadoopConfiguration());
|
new HadoopConfiguration());
|
||||||
LOG.info("Initiating re-login for " + keytabPrincipal);
|
if (LOG.isDebugEnabled()) {
|
||||||
|
LOG.debug("Initiating re-login for " + keytabPrincipal);
|
||||||
|
}
|
||||||
start = Time.now();
|
start = Time.now();
|
||||||
login.login();
|
login.login();
|
||||||
metrics.loginSuccess.add(Time.now() - start);
|
metrics.loginSuccess.add(Time.now() - start);
|
||||||
@ -1042,7 +1046,9 @@ public synchronized void reloginFromTicketCache()
|
|||||||
// register most recent relogin attempt
|
// register most recent relogin attempt
|
||||||
user.setLastLogin(now);
|
user.setLastLogin(now);
|
||||||
try {
|
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
|
//clear up the kerberos state. But the tokens are not cleared! As per
|
||||||
//the Java kerberos login module code, only the kerberos credentials
|
//the Java kerberos login module code, only the kerberos credentials
|
||||||
//are cleared
|
//are cleared
|
||||||
@ -1052,7 +1058,9 @@ public synchronized void reloginFromTicketCache()
|
|||||||
login =
|
login =
|
||||||
newLoginContext(HadoopConfiguration.USER_KERBEROS_CONFIG_NAME,
|
newLoginContext(HadoopConfiguration.USER_KERBEROS_CONFIG_NAME,
|
||||||
getSubject(), new HadoopConfiguration());
|
getSubject(), new HadoopConfiguration());
|
||||||
LOG.info("Initiating re-login for " + getUserName());
|
if (LOG.isDebugEnabled()) {
|
||||||
|
LOG.debug("Initiating re-login for " + getUserName());
|
||||||
|
}
|
||||||
login.login();
|
login.login();
|
||||||
setLogin(login);
|
setLogin(login);
|
||||||
} catch (LoginException le) {
|
} catch (LoginException le) {
|
||||||
|
Loading…
Reference in New Issue
Block a user