hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject svn commit: r1292969 - in /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata: DefaultStorageHandler.java HiveStorageHandler.java
Date Thu, 23 Feb 2012 21:33:16 GMT
Author: hashutosh
Date: Thu Feb 23 21:33:16 2012
New Revision: 1292969

URL: http://svn.apache.org/viewvc?rev=1292969&view=rev
Log:
HIVE-2768: Add a getAuthorizationProvider to HiveStorageHandler (toffer via hashutosh)

Modified:
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/DefaultStorageHandler.java
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/DefaultStorageHandler.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/DefaultStorageHandler.java?rev=1292969&r1=1292968&r2=1292969&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/DefaultStorageHandler.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/DefaultStorageHandler.java Thu
Feb 23 21:33:16 2012
@@ -25,6 +25,8 @@ import org.apache.hadoop.hive.metastore.
 import org.apache.hadoop.hive.ql.plan.TableDesc;
 import org.apache.hadoop.hive.serde2.SerDe;
 import org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe;
+import org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProvider;
+import org.apache.hadoop.hive.ql.security.authorization.DefaultHiveAuthorizationProvider;
 import org.apache.hadoop.mapred.InputFormat;
 import org.apache.hadoop.mapred.OutputFormat;
 import org.apache.hadoop.mapred.SequenceFileInputFormat;
@@ -61,6 +63,11 @@ public class DefaultStorageHandler imple
     return null;
   }
 
+  public HiveAuthorizationProvider getAuthorizationProvider()
+         throws HiveException {
+     return new DefaultHiveAuthorizationProvider();
+  }
+
   @Override
   public void configureTableJobProperties(
     TableDesc tableDesc,

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java?rev=1292969&r1=1292968&r2=1292969&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java Thu
Feb 23 21:33:16 2012
@@ -24,6 +24,7 @@ import org.apache.hadoop.conf.Configurab
 import org.apache.hadoop.hive.metastore.HiveMetaHook;
 import org.apache.hadoop.hive.ql.plan.TableDesc;
 import org.apache.hadoop.hive.serde2.SerDe;
+import org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProvider;
 import org.apache.hadoop.mapred.InputFormat;
 import org.apache.hadoop.mapred.OutputFormat;
 
@@ -68,6 +69,15 @@ public interface HiveStorageHandler exte
   public HiveMetaHook getMetaHook();
 
   /**
+   * Returns the implementation specific authorization provider
+   *
+   * @return authorization provider
+   * @throws HiveException
+   */
+  public HiveAuthorizationProvider getAuthorizationProvider()
+    throws HiveException;
+
+  /**
    * Configures properties for a job based on the definition of the
    * source or target table it accesses.
    *



Mime
View raw message