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
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.LocalHBaseClusterprivate static Stringprivate static Stringprivate static org.apache.hadoop.minikdc.MiniKdcprivate static final Fileprivate static Stringprotected static final HBaseTestingUtilprivate static Classprotected static String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidsetTestRunner(Class testRunnerClass) SecureTestCluster extending classes can set their ownClassreference 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 voidsetUp()Setup and start kerberos, hbasestatic voidtearDown()
-
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 ownClassreference 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- aClassreference from theSecureTestClusterextender.
-
setUp
Setup and start kerberos, hbase- Throws:
Exception
-
tearDown
- Throws:
Exception
-