public class TestSaslFanOutOneBlockAsyncDFSOutput extends AsyncFSTestBase
| Modifier and Type | Field and Description |
|---|---|
private static Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> |
CHANNEL_CLASS |
String |
cipherSuite |
static HBaseClassTestRule |
CLASS_RULE |
String |
encryptionAlgorithm |
private org.apache.hadoop.fs.Path |
entryptionTestDirOnTestFs |
private static org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup |
EVENT_LOOP_GROUP |
private static org.apache.hadoop.hdfs.DistributedFileSystem |
FS |
private static String |
HOST |
private static String |
HTTP_PRINCIPAL |
private static org.apache.hadoop.minikdc.MiniKdc |
KDC |
private static File |
KEYTAB_FILE |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.hbase.io.asyncfs.monitor.StreamSlowMonitor |
MONITOR |
org.junit.rules.TestName |
name |
private static String |
PRINCIPAL |
String |
protection |
private static int |
READ_TIMEOUT_MS |
private static String |
TEST_KEY_NAME |
private org.apache.hadoop.fs.Path |
testDirOnTestFs |
private static String |
USERNAME |
CLUSTER, CLUSTER_TEST_DIR, UTIL| Constructor and Description |
|---|
TestSaslFanOutOneBlockAsyncDFSOutput() |
| Modifier and Type | Method and Description |
|---|---|
private void |
createEncryptionZone() |
static Iterable<Object[]> |
data() |
private org.apache.hadoop.fs.Path |
getEncryptionTestFile() |
private org.apache.hadoop.fs.Path |
getTestFile() |
void |
setUp() |
static void |
setUpBeforeClass() |
private static void |
setUpKeyProvider(org.apache.hadoop.conf.Configuration conf) |
private static org.apache.hadoop.minikdc.MiniKdc |
setupMiniKdc(File keytabFile)
Sets up
MiniKdc for testing security. |
void |
tearDown() |
static void |
tearDownAfterClass() |
void |
test() |
private void |
test(org.apache.hadoop.fs.Path file) |
setupClusterTestDir, shutdownMiniDFSCluster, startMiniDFSClusterprivate static final org.slf4j.Logger LOG
public static final HBaseClassTestRule CLASS_RULE
private static org.apache.hadoop.hdfs.DistributedFileSystem FS
private static org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup EVENT_LOOP_GROUP
private static Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> CHANNEL_CLASS
private static int READ_TIMEOUT_MS
private static final File KEYTAB_FILE
private static org.apache.hadoop.minikdc.MiniKdc KDC
private static String HTTP_PRINCIPAL
private static String TEST_KEY_NAME
private static org.apache.hadoop.hbase.io.asyncfs.monitor.StreamSlowMonitor MONITOR
public org.junit.rules.TestName name
public String protection
public String encryptionAlgorithm
public String cipherSuite
private org.apache.hadoop.fs.Path testDirOnTestFs
private org.apache.hadoop.fs.Path entryptionTestDirOnTestFs
public TestSaslFanOutOneBlockAsyncDFSOutput()
private static void setUpKeyProvider(org.apache.hadoop.conf.Configuration conf) throws Exception
Exceptionprivate static org.apache.hadoop.minikdc.MiniKdc setupMiniKdc(File keytabFile) throws Exception
MiniKdc for testing security. Uses HBaseKerberosUtils to set the given
keytab file as HBaseKerberosUtils.KRB_KEYTAB_FILE.Exceptionpublic static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionprivate void createEncryptionZone() throws Exception
Exceptionpublic void tearDown() throws IOException
IOExceptionprivate org.apache.hadoop.fs.Path getTestFile()
private org.apache.hadoop.fs.Path getEncryptionTestFile()
private void test(org.apache.hadoop.fs.Path file) throws IOException, InterruptedException, ExecutionException
public void test() throws IOException, InterruptedException, ExecutionException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.