HADOOP-15382. Log kinit output in credential renewal thread. Contributed by Gabor Bota.

This commit is contained in:
Wei-Chiu Chuang 2018-04-27 10:05:55 -07:00
parent 24a5ccbf4b
commit bff3d7b0cf
1 changed files with 2 additions and 2 deletions

View File

@ -866,9 +866,9 @@ public class UserGroupInformation {
if (now < nextRefresh) {
Thread.sleep(nextRefresh - now);
}
Shell.execCommand(cmd, "-R");
String output = Shell.execCommand(cmd, "-R");
if (LOG.isDebugEnabled()) {
LOG.debug("renewed ticket");
LOG.debug("Renewed ticket. kinit output: {}", output);
}
reloginFromTicketCache();
tgt = getTGT();