incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject svn commit: r1498731 - in /incubator/ambari/branches/branch-1.2.5: ambari-server/src/main/resources/stacks/HDP/1.3.0/services/HBASE/configuration/ ambari-server/src/main/resources/stacks/HDP/2.0.1/services/HBASE/configuration/ ambari-server/src/main/re...
Date Mon, 01 Jul 2013 22:45:27 GMT
Author: yusaku
Date: Mon Jul  1 22:45:27 2013
New Revision: 1498731

URL: http://svn.apache.org/r1498731
Log:
AMBARI-2530. Ambari does not set property hbase.superuser in hbase-site.xml. (jaimin via yusaku)

Modified:
    incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDP/1.3.0/services/HBASE/configuration/hbase-site.xml
    incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDP/2.0.1/services/HBASE/configuration/hbase-site.xml
    incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDPLocal/1.3.0/services/HBASE/configuration/hbase-site.xml
    incubator/ambari/branches/branch-1.2.5/ambari-web/app/assets/data/wizard/stack/hdp/version1.3.0/HBASE.json
    incubator/ambari/branches/branch-1.2.5/ambari-web/app/assets/data/wizard/stack/hdp/version2.0.1/HBASE.json
    incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/common/configs/services_config.js

Modified: incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDP/1.3.0/services/HBASE/configuration/hbase-site.xml
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDP/1.3.0/services/HBASE/configuration/hbase-site.xml?rev=1498731&r1=1498730&r2=1498731&view=diff
==============================================================================
--- incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDP/1.3.0/services/HBASE/configuration/hbase-site.xml
(original)
+++ incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDP/1.3.0/services/HBASE/configuration/hbase-site.xml
Mon Jul  1 22:45:27 2013
@@ -245,7 +245,7 @@
   <!-- Additional configuration specific to HBase security -->
   <property>
     <name>hbase.superuser</name>
-    <value></value>
+    <value>hbase</value>
     <description>List of users or groups (comma-separated), who are allowed
     full privileges, regardless of stored ACLs, across the cluster.
     Only used when HBase security is enabled.

Modified: incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDP/2.0.1/services/HBASE/configuration/hbase-site.xml
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDP/2.0.1/services/HBASE/configuration/hbase-site.xml?rev=1498731&r1=1498730&r2=1498731&view=diff
==============================================================================
--- incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDP/2.0.1/services/HBASE/configuration/hbase-site.xml
(original)
+++ incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDP/2.0.1/services/HBASE/configuration/hbase-site.xml
Mon Jul  1 22:45:27 2013
@@ -245,7 +245,7 @@
   <!-- Additional configuration specific to HBase security -->
   <property>
     <name>hbase.superuser</name>
-    <value></value>
+    <value>hbase</value>
     <description>List of users or groups (comma-separated), who are allowed
     full privileges, regardless of stored ACLs, across the cluster.
     Only used when HBase security is enabled.

Modified: incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDPLocal/1.3.0/services/HBASE/configuration/hbase-site.xml
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDPLocal/1.3.0/services/HBASE/configuration/hbase-site.xml?rev=1498731&r1=1498730&r2=1498731&view=diff
==============================================================================
--- incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDPLocal/1.3.0/services/HBASE/configuration/hbase-site.xml
(original)
+++ incubator/ambari/branches/branch-1.2.5/ambari-server/src/main/resources/stacks/HDPLocal/1.3.0/services/HBASE/configuration/hbase-site.xml
Mon Jul  1 22:45:27 2013
@@ -245,7 +245,7 @@
   <!-- Additional configuration specific to HBase security -->
   <property>
     <name>hbase.superuser</name>
-    <value></value>
+    <value>hbase</value>
     <description>List of users or groups (comma-separated), who are allowed
     full privileges, regardless of stored ACLs, across the cluster.
     Only used when HBase security is enabled.

Modified: incubator/ambari/branches/branch-1.2.5/ambari-web/app/assets/data/wizard/stack/hdp/version1.3.0/HBASE.json
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.2.5/ambari-web/app/assets/data/wizard/stack/hdp/version1.3.0/HBASE.json?rev=1498731&r1=1498730&r2=1498731&view=diff
==============================================================================
--- incubator/ambari/branches/branch-1.2.5/ambari-web/app/assets/data/wizard/stack/hdp/version1.3.0/HBASE.json
(original)
+++ incubator/ambari/branches/branch-1.2.5/ambari-web/app/assets/data/wizard/stack/hdp/version1.3.0/HBASE.json
Mon Jul  1 22:45:27 2013
@@ -86,6 +86,18 @@
       }
     },
     {
+      "href" : "http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase.superuser",
+      "StackConfigurations" : {
+        "property_description" : "List of users or groups (comma-separated), who are allowed
full privileges, regardless of stored ACLs, across the cluster.Only used when HBase security
is enabled.\n",
+        "property_value" : "hbase",
+        "stack_version" : "1.3.0",
+        "property_name" : "hbase.superuser",
+        "service_name" : "HBASE",
+        "type" : "hbase-site.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
       "href" : "http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase_conf_dir",
       "StackConfigurations" : {
         "property_description" : "Config Directory for HBase.",

Modified: incubator/ambari/branches/branch-1.2.5/ambari-web/app/assets/data/wizard/stack/hdp/version2.0.1/HBASE.json
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.2.5/ambari-web/app/assets/data/wizard/stack/hdp/version2.0.1/HBASE.json?rev=1498731&r1=1498730&r2=1498731&view=diff
==============================================================================
--- incubator/ambari/branches/branch-1.2.5/ambari-web/app/assets/data/wizard/stack/hdp/version2.0.1/HBASE.json
(original)
+++ incubator/ambari/branches/branch-1.2.5/ambari-web/app/assets/data/wizard/stack/hdp/version2.0.1/HBASE.json
Mon Jul  1 22:45:27 2013
@@ -86,6 +86,18 @@
       }
     },
     {
+      "href" : "http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase.superuser",
+      "StackConfigurations" : {
+        "property_description" : "List of users or groups (comma-separated), who are allowed
full privileges, regardless of stored ACLs, across the cluster.Only used when HBase security
is enabled.\n",
+        "property_value" : "hbase",
+        "stack_version" : "2.0.1",
+        "property_name" : "hbase.superuser",
+        "service_name" : "HBASE",
+        "type" : "hbase-site.xml",
+        "stack_name" : "HDP"
+      }
+    },
+    {
       "href" : "http://dev.hortonworks.com:8080/api/v1/stacks2/HDP/versions/1.3.0/stackServices/HBASE/configurations/hbase_conf_dir",
       "StackConfigurations" : {
         "property_description" : "Config Directory for HBase.",

Modified: incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/common/configs/services_config.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/common/configs/services_config.js?rev=1498731&r1=1498730&r2=1498731&view=diff
==============================================================================
--- incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/common/configs/services_config.js
(original)
+++ incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/common/configs/services_config.js
Mon Jul  1 22:45:27 2013
@@ -34,14 +34,14 @@ App.ServiceConfigView = Em.View.extend({
   filter: '', //from template
   columns: [], //from template
   canEdit: true, // View is editable or read-only?
-  toggleRestartMessageView: function(){
+  toggleRestartMessageView: function () {
     this.$('.service-body').toggle('blind', 200);
     this.set('isRestartMessageCollapsed', !this.get('isRestartMessageCollapsed'));
   },
   didInsertElement: function () {
     this.$('.service-body').hide();
-    $(".restart-required-property").tooltip({html:true});
-    $(".icon-lock").tooltip({placement:'right'});
+    $(".restart-required-property").tooltip({html: true});
+    $(".icon-lock").tooltip({placement: 'right'});
   }
 });
 
@@ -132,6 +132,19 @@ App.ServiceConfigsByCategoryView = Ember
             }
           );
         }
+        var hbaseCurConfigs = stepConfigs.findProperty("serviceName", "HBASE").get("configs");
+        if (newValue != hbaseCurConfigs.findProperty("name", "hbase.superuser").get("value"))
{
+          this.affectedProperties.push(
+            {
+              serviceName: "HBASE",
+              propertyName: "hbase.superuser",
+              propertyDisplayName: "hbase.superuser",
+              newValue: newValue,
+              curValue: hbaseCurConfigs.findProperty("name", "hbase.superuser").get("value"),
+              changedPropertyName: "hbase_user"
+            }
+          );
+        }
       } else if (changedProperty.get("name") == "user_group") {
         if (!(this.get("controller.selectedServiceNames").indexOf("MAPREDUCE") >= 0))
{
           return;
@@ -313,21 +326,21 @@ App.ServiceConfigsByCategoryView = Ember
     return category.indexOf("Advanced") != -1;
   },
   showAddPropertyWindow: function (event) {
-    var allConfigs = this.get('service.configs').filterProperty('serviceName',this.get('service.serviceName'));
+    var allConfigs = this.get('service.configs').filterProperty('serviceName', this.get('service.serviceName'));
     var serviceConfigObj = Ember.Object.create({
       name: '',
       value: '',
       defaultValue: null,
       filename: '',
       isUserProperty: true,
-      isKeyError:false,
-      errorMessage:"",
-      observeAddPropertyValue:function(){
+      isKeyError: false,
+      errorMessage: "",
+      observeAddPropertyValue: function () {
         var name = this.get('name');
-        if(name.trim() != ""){
-          if(validator.isValidConfigKey(name)){
+        if (name.trim() != "") {
+          if (validator.isValidConfigKey(name)) {
             var configMappingProperty = App.config.get('configMapping').all().findProperty('name',
name);
-            if((configMappingProperty == null) && (!allConfigs.findProperty('name',name))){
+            if ((configMappingProperty == null) && (!allConfigs.findProperty('name',
name))) {
               this.set("isKeyError", false);
               this.set("errorMessage", "");
             } else {
@@ -375,11 +388,11 @@ App.ServiceConfigsByCategoryView = Ember
           serviceConfigObj.serviceName = serviceName;
           serviceConfigObj.displayType = stringUtils.isSingleLine(serviceConfigObj.get('value'))
? 'advanced' : 'multiLine';
           var serviceConfigProperty = App.ServiceConfigProperty.create(serviceConfigObj);
-          self.get('controller.secureConfigs').filterProperty('filename',self.get('category.siteFileName')).forEach(function(_secureConfig){
-            if(_secureConfig.name === serviceConfigProperty.get('name')) {
-              serviceConfigProperty.set('isSecureConfig',true);
+          self.get('controller.secureConfigs').filterProperty('filename', self.get('category.siteFileName')).forEach(function
(_secureConfig) {
+            if (_secureConfig.name === serviceConfigProperty.get('name')) {
+              serviceConfigProperty.set('isSecureConfig', true);
             }
-          },this);
+          }, this);
           self.get('serviceConfigs').pushObject(serviceConfigProperty);
           this.hide();
         }



Mime
View raw message