소스 검색

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

Wei-Chiu Chuang 7 년 전
부모
커밋
bff3d7b0cf
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java

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