@InterfaceAudience.Public @InterfaceStability.Evolving public class AccessControlClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static TableName |
ACL_TABLE_NAME |
| Constructor and Description |
|---|
AccessControlClient() |
| Modifier and Type | Method and Description |
|---|---|
static List<UserPermission> |
getUserPermissions(org.apache.hadoop.conf.Configuration conf,
String tableRegex)
List all the userPermissions matching the given pattern.
|
static void |
grant(org.apache.hadoop.conf.Configuration conf,
String userName,
Permission.Action... actions)
Grant global permissions for the specified user.
|
static void |
grant(org.apache.hadoop.conf.Configuration conf,
String namespace,
String userName,
Permission.Action... actions)
Grants permission on the specified namespace for the specified user.
|
static AccessControlProtos.GrantResponse |
grant(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
String userName,
byte[] family,
byte[] qual,
AccessControlProtos.Permission.Action... actions)
Deprecated.
|
static void |
grant(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
String userName,
byte[] family,
byte[] qual,
Permission.Action... actions)
Grants permission on the specified table for the specified user
|
static boolean |
isAccessControllerRunning(org.apache.hadoop.conf.Configuration conf) |
static void |
revoke(org.apache.hadoop.conf.Configuration conf,
String userName,
Permission.Action... actions)
Revoke global permissions for the specified user.
|
static void |
revoke(org.apache.hadoop.conf.Configuration conf,
String namespace,
String userName,
Permission.Action... actions)
Revokes the permission on the table for the specified user.
|
static AccessControlProtos.RevokeResponse |
revoke(org.apache.hadoop.conf.Configuration conf,
String username,
TableName tableName,
byte[] family,
byte[] qualifier,
AccessControlProtos.Permission.Action... actions)
Deprecated.
|
static void |
revoke(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
String username,
byte[] family,
byte[] qualifier,
Permission.Action... actions)
Revokes the permission on the table
|
public static final TableName ACL_TABLE_NAME
public static void grant(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
String userName,
byte[] family,
byte[] qual,
Permission.Action... actions)
throws Throwable
conf - tableName - userName - family - qual - actions - Throwablepublic static void grant(org.apache.hadoop.conf.Configuration conf,
String namespace,
String userName,
Permission.Action... actions)
throws Throwable
conf - namespace - userName - actions - Throwablepublic static void grant(org.apache.hadoop.conf.Configuration conf,
String userName,
Permission.Action... actions)
throws Throwable
Throwablepublic static boolean isAccessControllerRunning(org.apache.hadoop.conf.Configuration conf)
throws MasterNotRunningException,
ZooKeeperConnectionException,
IOException
public static void revoke(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
String username,
byte[] family,
byte[] qualifier,
Permission.Action... actions)
throws Throwable
conf - tableName - username - family - qualifier - actions - Throwablepublic static void revoke(org.apache.hadoop.conf.Configuration conf,
String namespace,
String userName,
Permission.Action... actions)
throws Throwable
conf - namespace - userName - actions - Throwablepublic static void revoke(org.apache.hadoop.conf.Configuration conf,
String userName,
Permission.Action... actions)
throws Throwable
Throwablepublic static List<UserPermission> getUserPermissions(org.apache.hadoop.conf.Configuration conf, String tableRegex) throws Throwable
conf - tableRegex - The regular expression string to match againstThrowable@Deprecated public static AccessControlProtos.GrantResponse grant(org.apache.hadoop.conf.Configuration conf, TableName tableName, String userName, byte[] family, byte[] qual, AccessControlProtos.Permission.Action... actions) throws Throwable
grant(Configuration, TableName, String, byte[], byte[], Permission.Action...) instead.conf - tableName - userName - family - qual - actions - Throwable@Deprecated public static AccessControlProtos.RevokeResponse revoke(org.apache.hadoop.conf.Configuration conf, String username, TableName tableName, byte[] family, byte[] qualifier, AccessControlProtos.Permission.Action... actions) throws Throwable
revoke(Configuration, TableName, String, byte[], byte[], Permission.Action...) insteadconf - username - tableName - family - qualifier - actions - ThrowableCopyright © 2015 The Apache Software Foundation. All Rights Reserved.