瀏覽代碼

AMBARI-14253 AMS service check fails on CentOS7 (dsen)

Dmytro Sen 9 年之前
父節點
當前提交
0404d06138

+ 2 - 2
ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/TimelineMetricConfiguration.java

@@ -263,9 +263,9 @@ public class TimelineMetricConfiguration {
 
   public int getTimelineMetricsServiceWatcherInitDelay() {
     if (metricsConf != null) {
-      return Integer.parseInt(metricsConf.get(WATCHER_INITIAL_DELAY, "120"));
+      return Integer.parseInt(metricsConf.get(WATCHER_INITIAL_DELAY, "600"));
     }
-    return 120;
+    return 600;
   }
 
   public int getTimelineMetricsServiceWatcherDelay() {

+ 2 - 2
ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-site.xml

@@ -496,10 +496,10 @@
   </property>
   <property>
     <name>timeline.metrics.service.watcher.initial.delay</name>
-    <value>120</value>
+    <value>600</value>
     <description>
       The time to delay first watcher check execution
-      Default resolution is 2 minutes.
+      Default resolution is 10 minutes.
     </description>
   </property>
   <property>