org.apache.hadoop.hive.ql.security.authorization
Class AuthorizationPreEventListener
java.lang.Object
org.apache.hadoop.hive.metastore.MetaStorePreEventListener
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
|
LOG
public static final org.apache.commons.logging.Log LOG
AuthorizationPreEventListener
public AuthorizationPreEventListener(org.apache.hadoop.conf.Configuration config)
throws HiveException
- Throws:
HiveException
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.