浏览代码

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

Wei-Chiu Chuang 7 年之前
父节点
当前提交
bff3d7b0cf

+ 2 - 2
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java

@@ -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();