@InterfaceAudience.Public @InterfaceStability.Evolving public class AccessControlClient extends Object
| 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 AccessControlProtos.GrantResponse |
grant(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
String userName,
byte[] family,
byte[] qual,
AccessControlProtos.Permission.Action... actions)
Grants permission on the specified table for the specified user
|
static boolean |
isAccessControllerRunning(org.apache.hadoop.conf.Configuration conf) |
static AccessControlProtos.RevokeResponse |
revoke(org.apache.hadoop.conf.Configuration conf,
String username,
TableName tableName,
byte[] family,
byte[] qualifier,
AccessControlProtos.Permission.Action... actions)
Revokes the permission on the table
|
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
conf - tableName - userName - family - qual - actions - Throwablepublic static boolean isAccessControllerRunning(org.apache.hadoop.conf.Configuration conf)
throws MasterNotRunningException,
ZooKeeperConnectionException,
IOException
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
conf - username - tableName - family - qualifier - actions - Throwablepublic static List<UserPermission> getUserPermissions(org.apache.hadoop.conf.Configuration conf, String tableRegex) throws Throwable
conf - tableRegex - The regular expression string to match againstThrowableCopyright © 2014 The Apache Software Foundation. All rights reserved.