This is an automated email from the ASF dual-hosted git repository.
lidongdai pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 83589c7 Optimize kerberos tgt expire time in HadoopUtils. (#2700)
83589c7 is described below
commit 83589c7b7cf6742a7fd2fa323cee653c41ca72d2
Author: t1mon <[email protected]>
AuthorDate: Sat Jul 4 18:22:30 2020 +0800
Optimize kerberos tgt expire time in HadoopUtils. (#2700)
* Optimize PropertyUtils instantiation.
* Fix info error.
* Optimize kerberos tgt expire time.
Co-authored-by: dailidong <[email protected]>
---
.../java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java | 2 +-
dolphinscheduler-common/src/main/resources/common.properties | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git
a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
index 10fa0b6..33127e1 100644
---
a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
+++
b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
@@ -63,7 +63,7 @@ public class HadoopUtils implements Closeable {
private static final LoadingCache<String, HadoopUtils> cache = CacheBuilder
.newBuilder()
-
.expireAfterWrite(PropertyUtils.getInt(Constants.KERBEROS_EXPIRE_TIME, 7),
TimeUnit.DAYS)
+
.expireAfterWrite(PropertyUtils.getInt(Constants.KERBEROS_EXPIRE_TIME, 2),
TimeUnit.HOURS)
.build(new CacheLoader<String, HadoopUtils>() {
@Override
public HadoopUtils load(String key) throws Exception {
diff --git a/dolphinscheduler-common/src/main/resources/common.properties
b/dolphinscheduler-common/src/main/resources/common.properties
index c167781..4a9baae 100644
--- a/dolphinscheduler-common/src/main/resources/common.properties
+++ b/dolphinscheduler-common/src/main/resources/common.properties
@@ -65,4 +65,6 @@
yarn.job.history.status.address=http://ds1:19888/ws/v1/history/mapreduce/jobs/%s
# system env path
#dolphinscheduler.env.path=env/dolphinscheduler_env.sh
development.state=false
-kerberos.expire.time=7
+
+# kerberos tgt expire time, unit is hours
+kerberos.expire.time=2
\ No newline at end of file