Browse Source

AMBARI-3060: yarn.nodemanager.log-dirs is displayed twice on yarn service page. (jaimin)

Jaimin Jetly 11 years ago
parent
commit
203b5f9fdb

+ 1 - 1
ambari-server/src/main/resources/stacks/HDP/2.0.5/services/YARN/configuration/yarn-site.xml

@@ -141,7 +141,7 @@
 
 
   <property>
   <property>
     <name>yarn.nodemanager.log-dirs</name>
     <name>yarn.nodemanager.log-dirs</name>
-    <value></value>
+    <value>/hadoop/yarn</value>
     <description>
     <description>
       Where to store container logs. An application's localized log directory
       Where to store container logs. An application's localized log directory
       will be found in ${yarn.nodemanager.log-dirs}/application_${appid}.
       will be found in ${yarn.nodemanager.log-dirs}/application_${appid}.

+ 1 - 1
ambari-server/src/main/resources/stacks/HDPLocal/2.0.5/services/YARN/configuration/yarn-site.xml

@@ -141,7 +141,7 @@
 
 
   <property>
   <property>
     <name>yarn.nodemanager.log-dirs</name>
     <name>yarn.nodemanager.log-dirs</name>
-    <value></value>
+    <value>/hadoop/yarn</value>
     <description>
     <description>
       Where to store container logs. An application's localized log directory
       Where to store container logs. An application's localized log directory
       will be found in ${yarn.nodemanager.log-dirs}/application_${appid}.
       will be found in ${yarn.nodemanager.log-dirs}/application_${appid}.

+ 0 - 7
ambari-web/app/data/HDP2/config_mapping.js

@@ -344,13 +344,6 @@ var configs = [
     "value": "<templateName[0]>",
     "value": "<templateName[0]>",
     "filename": "yarn-site.xml"
     "filename": "yarn-site.xml"
   },
   },
-  {
-    "name": "yarn.nodemanager.log-dirs",
-    "templateName": ["yarn_nodemanager_log-dirs"],
-    "foreignKey": null,
-    "value": "<templateName[0]>",
-    "filename": "yarn-site.xml"
-  },
 /**********************************************mapred-site***************************************/
 /**********************************************mapred-site***************************************/
   {
   {
     "name": "mapreduce.jobhistory.webapp.address",
     "name": "mapreduce.jobhistory.webapp.address",

+ 0 - 17
ambari-web/app/data/HDP2/global_properties.js

@@ -737,23 +737,6 @@ module.exports =
       "serviceName": "YARN",
       "serviceName": "YARN",
       "category": "Advanced"
       "category": "Advanced"
     },
     },
-    {
-      "id": "puppet var",
-      "name": "yarn_nodemanager_log-dirs",
-      "displayName": "yarn.nodemanager.log-dirs",
-      "defaultValue": "",
-      "description": "Where to store container logs. An application's localized log directory\
-      will be found in ${yarn.nodemanager.log-dirs}/application_${appid}.\
-      Individual containers' log directories will be below this, in directories\
-      named container_{$contid}. Each container directory will contain the files\
-      stderr, stdin, and syslog generated by that container.",
-      "defaultDirectory": "/hadoop/yarn",
-      "displayType": "directories",
-      "isReconfigurable": true,
-      "isVisible": true,
-      "serviceName": "YARN",
-      "category": "Advanced"
-    },
   /**********************************************HBASE***************************************/
   /**********************************************HBASE***************************************/
     {
     {
       "id": "puppet var",
       "id": "puppet var",

+ 8 - 1
ambari-web/app/data/HDP2/site_properties.js

@@ -22,6 +22,7 @@ module.exports =
       "id": "site property",
       "id": "site property",
       "name": "yarn.acl.enable",
       "name": "yarn.acl.enable",
       "displayName": "yarn.acl.enable",
       "displayName": "yarn.acl.enable",
+      "displayType": "checkbox",
       "value": "",
       "value": "",
       "defaultValue": "",
       "defaultValue": "",
       "serviceName": "YARN",
       "serviceName": "YARN",
@@ -40,6 +41,7 @@ module.exports =
       "id": "site property",
       "id": "site property",
       "name": "yarn.log-aggregation-enable",
       "name": "yarn.log-aggregation-enable",
       "displayName": "yarn.log-aggregation-enable",
       "displayName": "yarn.log-aggregation-enable",
+      "displayType": "checkbox",
       "value": "",
       "value": "",
       "defaultValue": "",
       "defaultValue": "",
       "serviceName": "YARN",
       "serviceName": "YARN",
@@ -94,8 +96,13 @@ module.exports =
       "id": "site property",
       "id": "site property",
       "name": "yarn.nodemanager.log-dirs",
       "name": "yarn.nodemanager.log-dirs",
       "displayName": "yarn.nodemanager.log-dirs",
       "displayName": "yarn.nodemanager.log-dirs",
-      "value": "",
       "defaultValue": "",
       "defaultValue": "",
+      "description": "Where to store container logs. An application's localized log directory\
+      will be found in ${yarn.nodemanager.log-dirs}/application_${appid}.\
+      Individual containers' log directories will be below this, in directories\
+      named container_{$contid}. Each container directory will contain the files\
+      stderr, stdin, and syslog generated by that container.",
+      "defaultDirectory": "/hadoop/yarn",
       "displayType": "directories",
       "displayType": "directories",
       "serviceName": "YARN",
       "serviceName": "YARN",
       "category": "NodeManager"
       "category": "NodeManager"

+ 3 - 3
ambari-web/app/models/service_config.js

@@ -34,7 +34,7 @@ App.ServiceConfig = Ember.Object.extend({
           overrideErrors += 1;
           overrideErrors += 1;
         }
         }
       })
       })
-    })
+    });
     var masterErrors = this.get('configs').filterProperty('isValid', false).filterProperty('isVisible', true).get('length');
     var masterErrors = this.get('configs').filterProperty('isValid', false).filterProperty('isVisible', true).get('length');
     var slaveErrors = 0;
     var slaveErrors = 0;
     this.get('configCategories').forEach(function (_category) {
     this.get('configCategories').forEach(function (_category) {
@@ -289,7 +289,7 @@ App.ServiceConfigProperty = Ember.Object.extend({
       case 'dfs_data_dir':
       case 'dfs_data_dir':
       case 'dfs_datanode_data_dir':
       case 'dfs_datanode_data_dir':
       case 'yarn_nodemanager_local-dirs':
       case 'yarn_nodemanager_local-dirs':
-      case 'yarn_nodemanager_log-dirs':
+      case 'yarn.nodemanager.log-dirs':
       case 'mapred_local_dir':
       case 'mapred_local_dir':
       case 'mapreduce_cluster_local_dir':
       case 'mapreduce_cluster_local_dir':
         this.unionAllMountPoints(!isOnlyFirstOneNeeded, localDB);
         this.unionAllMountPoints(!isOnlyFirstOneNeeded, localDB);
@@ -353,7 +353,7 @@ App.ServiceConfigProperty = Ember.Object.extend({
           setOfHostNames.push(host.hostName);
           setOfHostNames.push(host.hostName);
         }, this);
         }, this);
         break;
         break;
-      case 'yarn_nodemanager_log-dirs':
+      case 'yarn.nodemanager.log-dirs':
       case 'yarn_nodemanager_local-dirs':
       case 'yarn_nodemanager_local-dirs':
         temp = slaveComponentHostsInDB.findProperty('componentName', 'NODEMANAGER');
         temp = slaveComponentHostsInDB.findProperty('componentName', 'NODEMANAGER');
         temp.hosts.forEach(function (host) {
         temp.hosts.forEach(function (host) {