Skip to content

Commit 37f7067

Browse files
authored
[Fix-17036] should reconnect hdfs after renew tgt (#17394)
1 parent 04a8429 commit 37f7067

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • dolphinscheduler-storage-plugin/dolphinscheduler-storage-hdfs/src/main/java/org/apache/dolphinscheduler/plugin/storage/hdfs

dolphinscheduler-storage-plugin/dolphinscheduler-storage-hdfs/src/main/java/org/apache/dolphinscheduler/plugin/storage/hdfs/HdfsStorageOperator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,12 @@ private void init() {
112112
.scheduleWithFixedDelay(() -> {
113113
try {
114114
UserGroupInformation.getLoginUser().checkTGTAndReloginFromKeytab();
115+
fs = FileSystem.get(configuration);
115116
log.info("checkTGTAndReloginFromKeytab finished");
116117
} catch (Exception e) {
117118
log.error("checkTGTAndReloginFromKeytab Error", e);
118119
}
119-
}, kerberosExpireTimeInHour, kerberosExpireTimeInHour, TimeUnit.MINUTES);
120+
}, kerberosExpireTimeInHour, kerberosExpireTimeInHour, TimeUnit.HOURS);
120121
}
121122
fs = FileSystem.get(configuration);
122123
log.info("Initialize HdfsStorageOperator with kerberos");

0 commit comments

Comments
 (0)