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.


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
clone, equals, finalize, 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 MetaException,
                    NoSuchObjectException,
                    InvalidOperationException
Specified by:
onEvent in class MetaStorePreEventListener
Throws:
MetaException
NoSuchObjectException
InvalidOperationException


Copyright © 2011 The Apache Software Foundation