You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ra...@apache.org on 2012/05/17 20:15:32 UTC

svn commit: r1339769 - in /incubator/ambari/branches/ambari-186: CHANGES.txt hmc/puppet/modules/hdp-hive/manifests/params.pp hmc/puppet/modules/hdp-hive/templates/hive-env.sh.erb hmc/puppet/modules/hdp-hive/templates/hive-site.xml.erb

Author: ramya
Date: Thu May 17 18:15:31 2012
New Revision: 1339769

URL: http://svn.apache.org/viewvc?rev=1339769&view=rev
Log:
AMBARI-256. Update hive config to enable authorization

Modified:
    incubator/ambari/branches/ambari-186/CHANGES.txt
    incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/manifests/params.pp
    incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/templates/hive-env.sh.erb
    incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/templates/hive-site.xml.erb

Modified: incubator/ambari/branches/ambari-186/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/CHANGES.txt?rev=1339769&r1=1339768&r2=1339769&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/CHANGES.txt (original)
+++ incubator/ambari/branches/ambari-186/CHANGES.txt Thu May 17 18:15:31 2012
@@ -1,6 +1,8 @@
 Ambari Change log
 
 Release 0.x.x - unreleased
+
+  AMBARI-256. Update hive config to enable authorization (ramya)
  
   AMBARI-254. Parameterize zookeeper configs (ramya)
 

Modified: incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/manifests/params.pp
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/manifests/params.pp?rev=1339769&r1=1339768&r2=1339769&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/manifests/params.pp (original)
+++ incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/manifests/params.pp Thu May 17 18:15:31 2012
@@ -36,4 +36,5 @@ class hdp-hive::params() inherits hdp::p
   ###mysql connector
   $download_url = $hdp::params::gpl_artifacts_download_url
   $mysql_connector_url = "${download_url}/mysql-connector-java-5.1.18.zip"
+  $hive_aux_jars_path =  hdp_default("hive_aux_jars_path","/usr/lib/hcatalog/share/hcatalog/hcatalog-0.4.0.jar")
 }

Modified: incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/templates/hive-env.sh.erb
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/templates/hive-env.sh.erb?rev=1339769&r1=1339768&r2=1339769&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/templates/hive-env.sh.erb (original)
+++ incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/templates/hive-env.sh.erb Thu May 17 18:15:31 2012
@@ -51,3 +51,4 @@ export HIVE_CONF_DIR=<%=scope.function_h
 
 # Folder containing extra ibraries required for hive compilation/execution can be controlled by:
 # export HIVE_AUX_JARS_PATH=
+export HIVE_AUX_JARS_PATH=<%=scope.function_hdp_template_var("hive_aux_jars_path")%>

Modified: incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/templates/hive-site.xml.erb
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/templates/hive-site.xml.erb?rev=1339769&r1=1339768&r2=1339769&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/templates/hive-site.xml.erb (original)
+++ incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-hive/templates/hive-site.xml.erb Thu May 17 18:15:31 2012
@@ -111,4 +111,18 @@ limitations under the License.
     <value>true</value>
     <description>In unsecure mode, setting this property to true will cause the metastore to execute DFS operations using the client's reported user and group permissions. Note that this property must be set on both the client and     server sides. Further note that its best effort. If client sets its to true and server sets it to false, client setting will be ignored.</description>
   </property>
+
+  <property>
+    <name>hive.security.authorization.enabled</name>
+    <value>true</value>
+    <description>enable or disable the hive client authorization</description>
+  </property>
+
+  <property>
+    <name>hive.security.authorization.manager</name>
+    <value>org.apache.hcatalog.security.HdfsAuthorizationProvider</value>
+    <description>the hive client authorization manager class name.
+    The user defined authorization class should implement interface org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProvider.  </description>
+  </property>
+
 </configuration>