You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2015/03/10 19:52:40 UTC

ambari git commit: AMBARI-10001. Missing property "Common Name for Certificate" in Advanced ranger-hbase-plugin-properties (Velmurugan Periasamy via alejandro)

Repository: ambari
Updated Branches:
  refs/heads/trunk 7ca07ca71 -> 96e8bbdf0


AMBARI-10001. Missing property "Common Name for Certificate" in Advanced ranger-hbase-plugin-properties (Velmurugan Periasamy via alejandro)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/96e8bbdf
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/96e8bbdf
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/96e8bbdf

Branch: refs/heads/trunk
Commit: 96e8bbdf080d7dd5abee5ec5ae8497269303c543
Parents: 7ca07ca
Author: Alejandro Fernandez <af...@hortonworks.com>
Authored: Tue Mar 10 11:51:44 2015 -0700
Committer: Alejandro Fernandez <af...@hortonworks.com>
Committed: Tue Mar 10 11:52:15 2015 -0700

----------------------------------------------------------------------
 .../common-services/HBASE/0.96.0.2.0/package/scripts/params.py | 1 +
 .../HBASE/0.96.0.2.0/package/scripts/setup_ranger_hbase.py     | 1 +
 .../HBASE/configuration/ranger-hbase-plugin-properties.xml     | 6 ++++++
 3 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/96e8bbdf/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params.py b/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params.py
index fecc2c5..98f0473 100644
--- a/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params.py
+++ b/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params.py
@@ -212,6 +212,7 @@ ssl_keystore_password = default("/configurations/ranger-hbase-plugin-properties/
 ssl_truststore_file = default("/configurations/ranger-hbase-plugin-properties/SSL_TRUSTSTORE_FILE_PATH", "/etc/hadoop/conf/ranger-plugin-truststore.jks")
 ssl_truststore_password = default("/configurations/ranger-hbase-plugin-properties/SSL_TRUSTSTORE_PASSWORD", "changeit")
 grant_revoke = default("/configurations/ranger-hbase-plugin-properties/UPDATE_XAPOLICIES_ON_GRANT_REVOKE","true")
+common_name_for_certificate = default("/configurations/ranger-hbase-plugin-properties/common.name.for.certificate", "-")
 
 zookeeper_znode_parent = config['configurations']['hbase-site']['zookeeper.znode.parent']
 hbase_zookeeoer_quorum = config['configurations']['hbase-site']['hbase.zookeeper.quorum']

http://git-wip-us.apache.org/repos/asf/ambari/blob/96e8bbdf/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/setup_ranger_hbase.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/setup_ranger_hbase.py b/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/setup_ranger_hbase.py
index 6d36e80..0df679b 100644
--- a/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/setup_ranger_hbase.py
+++ b/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/setup_ranger_hbase.py
@@ -182,6 +182,7 @@ def hbase_repo_properties():
   config_dict['hbase.zookeeper.property.clientPort'] = params.hbase_zookeeper_property_clientPort
   config_dict['hbase.zookeeper.quorum'] = params.hbase_zookeeoer_quorum
   config_dict['zookeeper.znode.parent'] = params.zookeeper_znode_parent
+  config_dict['commonNameForCertificate'] = params.common_name_for_certificate
 
   if params.security_enabled:
     config_dict['hbase.master.kerberos.principal'] = params.master_jaas_princ

http://git-wip-us.apache.org/repos/asf/ambari/blob/96e8bbdf/ambari-server/src/main/resources/stacks/HDP/2.2/services/HBASE/configuration/ranger-hbase-plugin-properties.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/HBASE/configuration/ranger-hbase-plugin-properties.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/HBASE/configuration/ranger-hbase-plugin-properties.xml
index b085c0d..f09d2d1 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/HBASE/configuration/ranger-hbase-plugin-properties.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/HBASE/configuration/ranger-hbase-plugin-properties.xml
@@ -21,6 +21,12 @@
 <configuration supports_final="true">
 
   <property>
+    <name>common.name.for.certificate</name>
+    <value>-</value>
+    <description>Used for repository creation on ranger admin</description>    
+  </property>      
+
+  <property>
     <name>policy_user</name>
     <value>ambari-qa</value>
     <description>This user must be system user and also present at Ranger admin portal</description>