Parcourir la source

AMBARI-6501 Extend server-side stack definition to include metadata for additional configurations (including -env.sh files) for each service 3. (ababiichuk)

aBabiichuk il y a 11 ans
Parent
commit
fd15d4c8ce

+ 15 - 0
ambari-web/app/data/HDP2/site_properties.js

@@ -2596,6 +2596,21 @@ module.exports =
       "filename": "hive-env.xml",
       "category": "Advanced"
     },
+  /**********************************************SQOOP***************************************/
+    {
+      "id": "site property",
+      "name": "content",
+      "displayName": "content",
+      "value": "",
+      "defaultValue": "",
+      "description": "-env.sh content",
+      "displayType": "content",
+      "isRequired": false,
+      "showLabel": false,
+      "serviceName": "SQOOP",
+      "filename": "sqoop-env.xml",
+      "category": "SqoopEnv"
+    },
   /**********************************************WEBHCAT***************************************/
     {
       "id": "site property",

+ 15 - 0
ambari-web/app/data/site_properties.js

@@ -1639,6 +1639,21 @@ module.exports =
       "filename": "hive-env.xml",
       "category": "Advanced"
     },
+  /**********************************************SQOOP***************************************/
+    {
+      "id": "site property",
+      "name": "content",
+      "displayName": "content",
+      "value": "",
+      "defaultValue": "",
+      "description": "-env.sh content",
+      "displayType": "content",
+      "isRequired": false,
+      "showLabel": false,
+      "serviceName": "SQOOP",
+      "filename": "sqoop-env.xml",
+      "category": "SqoopEnv"
+    },
   /**********************************************WEBHCAT***************************************/
     {
       "id": "puppet var",

+ 5 - 0
ambari-web/app/models/stack_service.js

@@ -409,6 +409,11 @@ App.StackService.configCategories = function () {
         App.ServiceConfigCategory.create({ name: 'FlumeEnv', displayName: 'Custom Flume Env', siteFileName: 'flume-env.xml', canAddProperty: false})
       ]);
       break;
+    case 'SQOOP':
+      serviceConfigCategories.pushObjects([
+        App.ServiceConfigCategory.create({ name: 'SqoopEnv', displayName: 'Custom Sqoop Env', siteFileName: 'sqoop-env.xml', canAddProperty: false})
+      ]);
+      break;
     case 'HCATALOG':
       break;
     default: