final class TestHDFSAclHelper extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static byte[] |
COLUMN1 |
(package private) static byte[] |
COLUMN2 |
private static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
TestHDFSAclHelper() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
canUserScanSnapshot(HBaseTestingUtility util,
org.apache.hadoop.hbase.security.User user,
String snapshot,
int expectedRowCount)
Check if user is able to read expected rows from the specific snapshot
|
(package private) static org.apache.hadoop.hbase.client.Table |
createMobTable(HBaseTestingUtility util,
org.apache.hadoop.hbase.TableName tableName) |
(package private) static void |
createNamespace(HBaseTestingUtility util,
String namespace) |
(package private) static org.apache.hadoop.hbase.client.Table |
createTable(HBaseTestingUtility util,
org.apache.hadoop.hbase.TableName tableName) |
(package private) static void |
createTableAndPut(HBaseTestingUtility util,
org.apache.hadoop.hbase.TableName tableNam) |
(package private) static org.apache.hadoop.hbase.client.TableDescriptor |
createUserScanSnapshotDisabledTable(HBaseTestingUtility util,
org.apache.hadoop.hbase.TableName tableName) |
(package private) static PrivilegedExceptionAction<Void> |
getScanSnapshotAction(org.apache.hadoop.conf.Configuration conf,
String snapshotName,
long expectedRowCount) |
(package private) static org.apache.hadoop.hbase.client.TableDescriptorBuilder |
getTableDescriptorBuilder(HBaseTestingUtility util,
org.apache.hadoop.hbase.TableName tableName) |
(package private) static void |
grantOnTable(HBaseTestingUtility util,
String user,
org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.security.access.Permission.Action... actions) |
(package private) static void |
put(org.apache.hadoop.hbase.client.Table hTable) |
(package private) static void |
put2(org.apache.hadoop.hbase.client.Table hTable) |
private static final org.slf4j.Logger LOG
static final byte[] COLUMN1
static final byte[] COLUMN2
private TestHDFSAclHelper()
static void grantOnTable(HBaseTestingUtility util, String user, org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.hbase.security.access.Permission.Action... actions) throws Exception
Exception
static void createNamespace(HBaseTestingUtility util, String namespace) throws IOException
IOException
static org.apache.hadoop.hbase.client.Table createTable(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName) throws IOException
IOException
static org.apache.hadoop.hbase.client.Table createMobTable(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName) throws IOException
IOException
static org.apache.hadoop.hbase.client.TableDescriptor createUserScanSnapshotDisabledTable(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName) throws IOException
IOException
static org.apache.hadoop.hbase.client.TableDescriptorBuilder getTableDescriptorBuilder(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName)
static void createTableAndPut(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableNam) throws IOException
IOException
static void put(org.apache.hadoop.hbase.client.Table hTable) throws IOException
IOException
static void put2(org.apache.hadoop.hbase.client.Table hTable) throws IOException
IOException
static void canUserScanSnapshot(HBaseTestingUtility util, org.apache.hadoop.hbase.security.User user, String snapshot, int expectedRowCount) throws IOException, InterruptedException
user
- the specific usersnapshot
- the snapshot to be scannedexpectedRowCount
- expected row count read from snapshot, -1 if expects
AccessControlExceptionIOException
- user scan snapshot errorInterruptedException
- user scan snapshot errorstatic PrivilegedExceptionAction<Void> getScanSnapshotAction(org.apache.hadoop.conf.Configuration conf, String snapshotName, long expectedRowCount)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.