@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)
Deprecated.
Use
getUserPermissions(Connection, String) instead. |
static List<UserPermission> |
getUserPermissions(Connection connection,
String tableRegex)
List all the userPermissions matching the given pattern.
|
static void |
grant(org.apache.hadoop.conf.Configuration conf,
String userName,
Permission.Action... actions)
Deprecated.
Use
grant(Connection, String, Permission.Action...) instead. |
static void |
grant(org.apache.hadoop.conf.Configuration conf,
String namespace,
String userName,
Permission.Action... actions)
Deprecated.
|
static void |
grant(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
String userName,
byte[] family,
byte[] qual,
Permission.Action... actions)
Deprecated.
|
static void |
grant(Connection connection,
String userName,
Permission.Action... actions) |
static void |
grant(Connection connection,
String namespace,
String userName,
Permission.Action... actions)
Grants permission on the specified namespace for the specified user.
|
static void |
grant(Connection connection,
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)
Deprecated.
Use
isAccessControllerRunning(Connection) instead. |
static boolean |
isAccessControllerRunning(Connection connection) |
static void |
revoke(org.apache.hadoop.conf.Configuration conf,
String userName,
Permission.Action... actions)
Deprecated.
Use
revoke(Connection, String, Permission.Action...) instead. |
static void |
revoke(org.apache.hadoop.conf.Configuration conf,
String namespace,
String userName,
Permission.Action... actions)
Deprecated.
|
static void |
revoke(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
String username,
byte[] family,
byte[] qualifier,
Permission.Action... actions)
Deprecated.
|
static void |
revoke(Connection connection,
String userName,
Permission.Action... actions)
Revoke global permissions for the specified user.
|
static void |
revoke(Connection connection,
String namespace,
String userName,
Permission.Action... actions)
Revokes the permission on the table for the specified user.
|
static void |
revoke(Connection connection,
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(Connection connection, TableName tableName, String userName, byte[] family, byte[] qual, Permission.Action... actions) throws Throwable
connection
- The Connection instance to usetableName
- userName
- family
- qual
- actions
- Throwable
public static void grant(Connection connection, String namespace, String userName, Permission.Action... actions) throws Throwable
connection
- The Connection instance to usenamespace
- userName
- actions
- Throwable
public static void grant(Connection connection, String userName, Permission.Action... actions) throws Throwable
connection
- The Connection instance to use
Grant global permissions for the specified user.Throwable
public static boolean isAccessControllerRunning(Connection connection) throws MasterNotRunningException, ZooKeeperConnectionException, IOException
public static void revoke(Connection connection, TableName tableName, String username, byte[] family, byte[] qualifier, Permission.Action... actions) throws Throwable
connection
- The Connection instance to usetableName
- username
- family
- qualifier
- actions
- Throwable
public static void revoke(Connection connection, String namespace, String userName, Permission.Action... actions) throws Throwable
connection
- The Connection instance to usenamespace
- userName
- actions
- Throwable
public static void revoke(Connection connection, String userName, Permission.Action... actions) throws Throwable
connection
- The Connection instance to useThrowable
public static List<UserPermission> getUserPermissions(Connection connection, String tableRegex) throws Throwable
connection
- The Connection instance to usetableRegex
- The regular expression string to match againstThrowable
@Deprecated public static void grant(org.apache.hadoop.conf.Configuration conf, TableName tableName, String userName, byte[] family, byte[] qual, Permission.Action... actions) throws Throwable
grant(Connection, TableName, String, byte[], byte[],
Permission.Action...)
instead.conf
- tableName
- userName
- family
- qual
- actions
- Throwable
@Deprecated public static void grant(org.apache.hadoop.conf.Configuration conf, String namespace, String userName, Permission.Action... actions) throws Throwable
grant(Connection, String, String, Permission.Action...)
instead.conf
- namespace
- userName
- actions
- Throwable
@Deprecated public static void grant(org.apache.hadoop.conf.Configuration conf, String userName, Permission.Action... actions) throws Throwable
grant(Connection, String, Permission.Action...)
instead.Throwable
@Deprecated public static boolean isAccessControllerRunning(org.apache.hadoop.conf.Configuration conf) throws MasterNotRunningException, ZooKeeperConnectionException, IOException
isAccessControllerRunning(Connection)
instead.@Deprecated public static void revoke(org.apache.hadoop.conf.Configuration conf, TableName tableName, String username, byte[] family, byte[] qualifier, Permission.Action... actions) throws Throwable
revoke(Connection, TableName, String, byte[], byte[],
Permission.Action...)
instead.conf
- tableName
- username
- family
- qualifier
- actions
- Throwable
@Deprecated public static void revoke(org.apache.hadoop.conf.Configuration conf, String namespace, String userName, Permission.Action... actions) throws Throwable
revoke(Connection, String, String, Permission.Action...)
instead.conf
- namespace
- userName
- actions
- Throwable
@Deprecated public static void revoke(org.apache.hadoop.conf.Configuration conf, String userName, Permission.Action... actions) throws Throwable
revoke(Connection, String, Permission.Action...)
instead.Throwable
@Deprecated public static List<UserPermission> getUserPermissions(org.apache.hadoop.conf.Configuration conf, String tableRegex) throws Throwable
getUserPermissions(Connection, String)
instead.conf
- tableRegex
- The regular expression string to match againstThrowable
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.