+ hadoop-resource-manager.yarn_log_retain_seconds |
+ com["hadoop-resource-manager"]["yarn_log_retain_seconds"] |
+ cluster_cfg["hadoop-resource-manager"]["yarn_log_retain_seconds"] |
+ Int |
+
diff --git a/src/hadoop-resource-manager/config/hadoop-resource-manager.yaml b/src/hadoop-resource-manager/config/hadoop-resource-manager.yaml
index c68367d550..2330e758e1 100644
--- a/src/hadoop-resource-manager/config/hadoop-resource-manager.yaml
+++ b/src/hadoop-resource-manager/config/hadoop-resource-manager.yaml
@@ -21,3 +21,5 @@ virtualClusters:
capacity: 100
yarn_exporter_port: 9459
+
+yarn_log_retain_seconds: 2592000
\ No newline at end of file
diff --git a/src/hadoop-resource-manager/config/hadoop_resource_manager.py b/src/hadoop-resource-manager/config/hadoop_resource_manager.py
index aec78d60d7..fa200ad09d 100644
--- a/src/hadoop-resource-manager/config/hadoop_resource_manager.py
+++ b/src/hadoop-resource-manager/config/hadoop_resource_manager.py
@@ -59,6 +59,7 @@ def run(self):
com = {}
com["yarn_exporter_port"] = self.service_configuration["yarn_exporter_port"]
+ com["yarn_log_retain_seconds"] = self.service_configuration["yarn_log_retain_seconds"]
for host_config in self.cluster_configuration["machine-list"]:
if "pai-master" in host_config and host_config["pai-master"] == "true":
diff --git a/src/hadoop-resource-manager/deploy/hadoop-resource-manager-configuration/yarn-site.xml b/src/hadoop-resource-manager/deploy/hadoop-resource-manager-configuration/yarn-site.xml.template
similarity index 98%
rename from src/hadoop-resource-manager/deploy/hadoop-resource-manager-configuration/yarn-site.xml
rename to src/hadoop-resource-manager/deploy/hadoop-resource-manager-configuration/yarn-site.xml.template
index 6124ad2463..0af29a413a 100644
--- a/src/hadoop-resource-manager/deploy/hadoop-resource-manager-configuration/yarn-site.xml
+++ b/src/hadoop-resource-manager/deploy/hadoop-resource-manager-configuration/yarn-site.xml.template
@@ -104,7 +104,7 @@