org.apache.hadoop.hive.ql.security.authorization
Class AuthorizationPreEventListener

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.MetaStorePreEventListener
      extended by org.apache.hadoop.hive.ql.security.authorization.AuthorizationPreEventListener
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable

public class AuthorizationPreEventListener
extends MetaStorePreEventListener

AuthorizationPreEventListener : A MetaStorePreEventListener that performs authorization/authentication checks on the metastore-side. Note that this can only perform authorization checks on defined metastore PreEventContexts, such as the adding/dropping and altering of databases, tables and partitions.


Nested Class Summary
static class AuthorizationPreEventListener.PartitionWrapper
           
static class AuthorizationPreEventListener.TableWrapper
           
 
Field Summary
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
AuthorizationPreEventListener(org.apache.hadoop.conf.Configuration config)
           
 
Method Summary
 void onEvent(PreEventContext context)
           
 
Methods inherited from class org.apache.hadoop.hive.metastore.MetaStorePreEventListener
getConf, setConf
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

AuthorizationPreEventListener

public AuthorizationPreEventListener(org.apache.hadoop.conf.Configuration config)
                              throws HiveException
Throws:
HiveException
Method Detail

onEvent

public void onEvent(PreEventContext context)
             throws org.apache.hadoop.hive.metastore.api.MetaException,
                    org.apache.hadoop.hive.metastore.api.NoSuchObjectException,
                    org.apache.hadoop.hive.metastore.api.InvalidOperationException
Specified by:
onEvent in class MetaStorePreEventListener
Throws:
org.apache.hadoop.hive.metastore.api.MetaException
org.apache.hadoop.hive.metastore.api.NoSuchObjectException
org.apache.hadoop.hive.metastore.api.InvalidOperationException


Copyright © 2014 The Apache Software Foundation. All rights reserved.