ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject ambari git commit: AMBARI-12226. RU: Update deprecated Ranger classnames in various config files (ncole)
Date Wed, 01 Jul 2015 12:20:57 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk f17f197c9 -> 2c344cbfe


AMBARI-12226. RU: Update deprecated Ranger classnames in various config files (ncole)


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

Branch: refs/heads/trunk
Commit: 2c344cbfe2109cac23d96aad9908ecc8300606ab
Parents: f17f197
Author: Nate Cole <ncole@hortonworks.com>
Authored: Tue Jun 30 17:34:14 2015 -0400
Committer: Nate Cole <ncole@hortonworks.com>
Committed: Wed Jul 1 08:17:23 2015 -0400

----------------------------------------------------------------------
 .../server/serveraction/upgrades/ConfigureAction.java   |  3 +++
 .../resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml   | 12 ++++++++++++
 2 files changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2c344cbf/ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/ConfigureAction.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/ConfigureAction.java
b/ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/ConfigureAction.java
index 268832e..c717582 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/ConfigureAction.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/ConfigureAction.java
@@ -415,6 +415,9 @@ public class ConfigureAction extends AbstractServerAction {
           outputBuffer.append(MessageFormat.format("Replaced {0}/{1} containing \"{2}\" with
\"{3}\"\n",
             configType, replacement.key, replacement.find, replacement.replaceWith));
         }
+      } else {
+        outputBuffer.append(MessageFormat.format("Property \"{0}\" was not found in {1} to
replace content\n",
+            replacement.key, configType));
       }
     }
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/2c344cbf/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml
index 32da93f..56220d7 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml
@@ -682,6 +682,12 @@
             </condition>
           </task>
 
+          <task xsi:type="configure" summary="Updating Authorization Coprocessors">
+            <type>hbase-site</type>
+            <replace key="hbase.coprocessor.master.classes" find="com.xasecure.authorization.hbase.XaSecureAuthorizationCoprocessor"
replace-with="org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor" />
+            <replace key="hbase.coprocessor.region.classes" find="com.xasecure.authorization.hbase.XaSecureAuthorizationCoprocessor"
replace-with="org.apache.ranger.authorization.hbase.RangerAuthorizationCoprocessor" />
          
+          </task>
+          
           <task xsi:type="configure" summary="Transitioning Ranger HBase Policy">
             <type>ranger-hbase-policymgr-ssl</type>
             <transfer operation="copy" from-type="ranger-hbase-plugin-properties" from-key="SSL_KEYSTORE_FILE_PATH"
to-key="xasecure.policymgr.clientssl.keystore" default-value="/usr/hdp/current/hbase-client/conf/ranger-plugin-keystore.jks"
/>
@@ -818,6 +824,11 @@
               <value>10011</value>
             </condition>
           </task>
+          
+          <task xsi:type="configure" summary="Update Hive Authentication Manager">
+            <type>hiveserver2-site</type>
+            <replace key="hive.security.authorization.manager" find="com.xasecure.authorization.hive.authorizer.XaSecureHiveAuthorizerFactory"
replace-with="org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizerFactory"
/>
+          </task>
 
           <task xsi:type="configure" summary="Configuring hive authentication">
             <type>hive-site</type>
@@ -1155,6 +1166,7 @@
             <type>storm-site</type>
             <transfer operation="copy" from-key="nimbus.host" to-key="nimbus.seeds" coerce-to="yaml-array"/>
             <transfer operation="delete" delete-key="nimbus.host"/>
+            <replace key="nimbus.authorizer" find="com.xasecure.authorization.storm.authorizer.XaSecureStormAuthorizer"
replace-with="org.apache.ranger.authorization.storm.authorizer.RangerStormAuthorizer" />
           </task>
 
           <task xsi:type="configure" summary="Updating Storm home and configuration environment
variables">


Mime
View raw message