@InterfaceAudience.Public @InterfaceStability.Evolving public class AccessControlClient extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static org.apache.hadoop.hbase.TableName |
ACL_TABLE_NAME |
| 构造器和说明 |
|---|
AccessControlClient() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<UserPermission> |
getUserPermissions(org.apache.hadoop.conf.Configuration conf,
String tableRegex)
已过时。
|
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)
已过时。
|
static void |
grant(org.apache.hadoop.conf.Configuration conf,
String namespace,
String userName,
Permission.Action... actions)
已过时。
|
static void |
grant(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.TableName tableName,
String userName,
byte[] family,
byte[] qual,
Permission.Action... actions)
已过时。
|
static void |
grant(Connection connection,
String userName,
Permission.Action... actions)
Grant global permissions for the specified user.
|
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,
org.apache.hadoop.hbase.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 boolean |
isAccessControllerRunning(Connection connection) |
static void |
revoke(org.apache.hadoop.conf.Configuration conf,
String userName,
Permission.Action... actions)
已过时。
|
static void |
revoke(org.apache.hadoop.conf.Configuration conf,
String namespace,
String userName,
Permission.Action... actions)
已过时。
|
static void |
revoke(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.TableName tableName,
String username,
byte[] family,
byte[] qualifier,
Permission.Action... actions)
已过时。
|
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,
org.apache.hadoop.hbase.TableName tableName,
String username,
byte[] family,
byte[] qualifier,
Permission.Action... actions)
Revokes the permission on the table
|
@Deprecated public static void grant(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, String userName, byte[] family, byte[] qual, Permission.Action... actions) throws Throwable
conf - tableName - userName - family - qual - actions - Throwablepublic static void grant(Connection connection, org.apache.hadoop.hbase.TableName tableName, String userName, byte[] family, byte[] qual, Permission.Action... actions) throws Throwable
connection - 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
conf - namespace - userName - actions - Throwablepublic static void grant(Connection connection, String namespace, String userName, Permission.Action... actions) throws Throwable
conf - namespace - userName - actions - Throwable@Deprecated public static void grant(org.apache.hadoop.conf.Configuration conf, String userName, Permission.Action... actions) throws Throwable
Throwablepublic static void grant(Connection connection, String userName, Permission.Action... actions) throws Throwable
Throwable@Deprecated public static boolean isAccessControllerRunning(org.apache.hadoop.conf.Configuration conf) throws MasterNotRunningException, ZooKeeperConnectionException, IOException
public static boolean isAccessControllerRunning(Connection connection) throws MasterNotRunningException, ZooKeeperConnectionException, IOException
@Deprecated public static void revoke(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, String username, byte[] family, byte[] qualifier, Permission.Action... actions) throws Throwable
conf - tableName - username - family - qualifier - actions - Throwablepublic static void revoke(Connection connection, org.apache.hadoop.hbase.TableName tableName, String username, byte[] family, byte[] qualifier, Permission.Action... actions) throws Throwable
connection - 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
conf - namespace - userName - actions - Throwablepublic static void revoke(Connection connection, String namespace, String userName, Permission.Action... actions) throws Throwable
connection - namespace - userName - actions - Throwable@Deprecated public static void revoke(org.apache.hadoop.conf.Configuration conf, String userName, Permission.Action... actions) throws Throwable
Throwablepublic static void revoke(Connection connection, String userName, Permission.Action... actions) throws Throwable
Throwable@Deprecated public static List<UserPermission> getUserPermissions(org.apache.hadoop.conf.Configuration conf, String tableRegex) throws Throwable
conf - tableRegex - The regular expression string to match againstThrowablepublic static List<UserPermission> getUserPermissions(Connection connection, String tableRegex) throws Throwable
connection - tableRegex - The regular expression string to match againstThrowableCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.