public interface HiveAuthorizationProvider
extends org.apache.hadoop.conf.Configurable
Modifier and Type | Method and Description |
---|---|
void |
authorize(Database db,
Privilege[] readRequiredPriv,
Privilege[] writeRequiredPriv)
Authorization privileges against a database object.
|
void |
authorize(Partition part,
Privilege[] readRequiredPriv,
Privilege[] writeRequiredPriv)
Authorization privileges against a hive partition object.
|
void |
authorize(Privilege[] readRequiredPriv,
Privilege[] writeRequiredPriv)
Authorization user level privileges.
|
void |
authorize(Table table,
Partition part,
List<String> columns,
Privilege[] readRequiredPriv,
Privilege[] writeRequiredPriv)
Authorization privileges against a list of columns.
|
void |
authorize(Table table,
Privilege[] readRequiredPriv,
Privilege[] writeRequiredPriv)
Authorization privileges against a hive table object.
|
HiveAuthenticationProvider |
getAuthenticator() |
void |
init(org.apache.hadoop.conf.Configuration conf) |
void |
setAuthenticator(HiveAuthenticationProvider authenticator) |
void init(org.apache.hadoop.conf.Configuration conf) throws HiveException
HiveException
HiveAuthenticationProvider getAuthenticator()
void setAuthenticator(HiveAuthenticationProvider authenticator)
void authorize(Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv) throws HiveException, AuthorizationException
readRequiredPriv
- a list of privileges needed for inputs.writeRequiredPriv
- a list of privileges needed for outputs.HiveException
AuthorizationException
void authorize(Database db, Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv) throws HiveException, AuthorizationException
db
- databasereadRequiredPriv
- a list of privileges needed for inputs.writeRequiredPriv
- a list of privileges needed for outputs.HiveException
AuthorizationException
void authorize(Table table, Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv) throws HiveException, AuthorizationException
table
- table objectreadRequiredPriv
- a list of privileges needed for inputs.writeRequiredPriv
- a list of privileges needed for outputs.HiveException
AuthorizationException
void authorize(Partition part, Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv) throws HiveException, AuthorizationException
part
- partition objectreadRequiredPriv
- a list of privileges needed for inputs.writeRequiredPriv
- a list of privileges needed for outputs.HiveException
AuthorizationException
void authorize(Table table, Partition part, List<String> columns, Privilege[] readRequiredPriv, Privilege[] writeRequiredPriv) throws HiveException, AuthorizationException
table
- table objectpart
- partition objectcolumns
- a list of columnsreadRequiredPriv
- a list of privileges needed for inputs.writeRequiredPriv
- a list of privileges needed for outputs.HiveException
AuthorizationException
Copyright © 2017 The Apache Software Foundation. All rights reserved.