Przeglądaj źródła

AMBARI-3771 Ambari should allow changing Ganglia cache location. (ababiichuk)

aBabiichuk 11 lat temu
rodzic
commit
a4bd8e3673

+ 3 - 1
ambari-web/app/data/HDP2/global_properties.js

@@ -1696,9 +1696,11 @@ module.exports =
       "description": "Default directory for saving the rrd files on ganglia server",
       "defaultValue": "/var/lib/ganglia/rrds",
       "displayType": "directory",
+      "isReconfigurable": true,
       "isOverridable": false,
       "domain": "global",
-      "serviceName": "MISC",
+      "isVisible": true,
+      "serviceName": "GANGLIA",
       "category": "General",
       "belongsToService":["GANGLIA"]
     }

+ 3 - 1
ambari-web/app/data/global_properties.js

@@ -2036,9 +2036,11 @@ module.exports =
       "description": "Default directory for saving the rrd files on ganglia server",
       "defaultValue": "/var/lib/ganglia/rrds",
       "displayType": "directory",
+      "isReconfigurable": true,
       "isOverridable": false,
       "domain": "global",
-      "serviceName": "MISC",
+      "isVisible": true,
+      "serviceName": "GANGLIA",
       "category": "General",
       "belongsToService":["GANGLIA"]
     }

+ 10 - 0
ambari-web/app/data/service_configs.js

@@ -174,6 +174,16 @@ module.exports = [
     configs: []
   },
 
+  {
+    serviceName: 'GANGLIA',
+    displayName: 'Ganglia',
+    configCategories: [
+      App.ServiceConfigCategory.create({ name: 'General', displayName : 'General'})
+    ],
+    sites: ['global'],
+    configs: []
+  },
+
   {
     serviceName: 'HUE',
     displayName: 'Hue',

+ 1 - 0
ambari-web/app/models/service.js

@@ -57,6 +57,7 @@ App.Service = DS.Model.extend({
       "PIG",
       "SQOOP",
       "NAGIOS",
+      "GANGLIA",
       "HUE"
     ];
     return configurableServices.contains(this.get('serviceName'));