Class SecureTestCluster
java.lang.Object
org.apache.hadoop.hbase.security.token.SecureTestCluster
- Direct Known Subclasses:
TestDelegationTokenWithEncryption
,TestGenerateDelegationToken
The class for set up a security cluster with kerberos, hdfs, hbase.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.LocalHBaseCluster
private static String
private static String
private static org.apache.hadoop.minikdc.MiniKdc
private static final File
private static String
protected static final HBaseTestingUtil
private static Class
protected static String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
setTestRunner
(Class testRunnerClass) SecureTestCluster extending classes can set their ownClass
reference type to be used as the target resource to be looked for on the class loader byKeyStoreTestUtil
, when deciding where to place ssl related config files.static void
setUp()
Setup and start kerberos, hbasestatic void
tearDown()
-
Field Details
-
TEST_UTIL
-
USERNAME
-
CLUSTER
-
KEYTAB_FILE
-
KDC
-
HOST
-
PRINCIPAL
-
HTTP_PRINCIPAL
-
testRunnerClass
-
-
Constructor Details
-
SecureTestCluster
public SecureTestCluster()
-
-
Method Details
-
setTestRunner
SecureTestCluster extending classes can set their ownClass
reference type to be used as the target resource to be looked for on the class loader byKeyStoreTestUtil
, when deciding where to place ssl related config files.- Parameters:
testRunnerClass
- aClass
reference from theSecureTestCluster
extender.
-
setUp
Setup and start kerberos, hbase- Throws:
Exception
-
tearDown
- Throws:
Exception
-