Sfoglia il codice sorgente

AMBARI-10298. YARN service configs should look just like mockups - adding checkbox configs (srimanth)

Srimanth Gunturi 10 anni fa
parent
commit
5da97da85b

+ 4 - 0
ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/configuration/yarn-site.xml

@@ -259,6 +259,10 @@
     <name>yarn.log-aggregation-enable</name>
     <value>true</value>
     <description>Whether to enable log aggregation. </description>
+    <display-name>Enable Log Aggregation</display-name>
+    <value-attributes>
+      <type>boolean</type>
+    </value-attributes>
   </property>
 
   <property>

+ 15 - 0
ambari-server/src/main/resources/stacks/HDP/2.2/services/YARN/configuration/yarn-site.xml

@@ -77,6 +77,10 @@
     <description>
       Enable RM work preserving recovery. This configuration is private to YARN for experimenting the feature.
     </description>
+    <dispaly-name>Enable Work Preserving Restart</dispaly-name>
+    <value-attributes>
+      <type>boolean</type>
+    </value-attributes>
   </property>
   <property>
     <name>yarn.resourcemanager.store.class</name>
@@ -372,4 +376,15 @@
       </property>
     </depends-on>
   </property>
+  <property>
+    <name>yarn.node-labels.enabled</name>
+    <value>false</value>
+    <description>
+      Enabled node labels to restrict YARN applications so that they run only on cluster nodes that have a specified node label.
+    </description>
+    <dispaly-name>Enable Node Labels</dispaly-name>
+    <value-attributes>
+      <type>boolean</type>
+    </value-attributes>
+  </property>
 </configuration>

+ 30 - 0
ambari-server/src/main/resources/stacks/HDP/2.2/services/YARN/themes/theme.json

@@ -124,6 +124,18 @@
         {
           "config": "yarn-site/yarn.scheduler.maximum-allocation-vcores",
           "subsection-name": "subsection-container-sizing-col2"
+        },
+        {
+          "config": "yarn-site/yarn.node-labels.enabled",
+          "subsection-name": "subsection-yarn-platform-features-col1"
+        },
+        {
+          "config": "yarn-site/yarn.resourcemanager.work-preserving-recovery.enabled",
+          "subsection-name": "subsection-yarn-platform-features-col1"
+        },
+        {
+          "config": "yarn-site/yarn.log-aggregation-enable",
+          "subsection-name": "subsection-yarn-platform-features-col1"
         }
       ]
     },
@@ -215,6 +227,24 @@
             }
           ]
         }
+      },
+      {
+        "config":"yarn-site/yarn.node-labels.enabled",
+        "widget":{
+          "type":"checkbox"
+        }
+      },
+      {
+        "config":"yarn-site/yarn.log-aggregation-enable",
+        "widget":{
+          "type":"checkbox"
+        }
+      },
+      {
+        "config":"yarn-site/yarn.resourcemanager.work-preserving-recovery.enabled",
+        "widget":{
+          "type":"checkbox"
+        }
       }
     ]
   }