Package org.apache.accumulo.harness
Class MiniClusterHarness
- java.lang.Object
-
- org.apache.accumulo.harness.MiniClusterHarness
-
public class MiniClusterHarness extends Object
Harness that sets up a MiniAccumuloCluster in a manner expected for Accumulo integration tests.
-
-
Field Summary
Fields Modifier and Type Field Description static String
JAVA_SECURITY_KRB5_CONF
static String
SUN_SECURITY_KRB5_DEBUG
static String
TRUE
static String
USE_CRED_PROVIDER_FOR_IT_OPTION
static String
USE_KERBEROS_FOR_IT_OPTION
static String
USE_SSL_FOR_IT_OPTION
-
Constructor Summary
Constructors Constructor Description MiniClusterHarness()
-
Method Summary
-
-
-
Field Detail
-
USE_SSL_FOR_IT_OPTION
public static final String USE_SSL_FOR_IT_OPTION
- See Also:
- Constant Field Values
-
USE_CRED_PROVIDER_FOR_IT_OPTION
public static final String USE_CRED_PROVIDER_FOR_IT_OPTION
- See Also:
- Constant Field Values
-
USE_KERBEROS_FOR_IT_OPTION
public static final String USE_KERBEROS_FOR_IT_OPTION
- See Also:
- Constant Field Values
-
TRUE
public static final String TRUE
-
JAVA_SECURITY_KRB5_CONF
public static final String JAVA_SECURITY_KRB5_CONF
- See Also:
- Constant Field Values
-
SUN_SECURITY_KRB5_DEBUG
public static final String SUN_SECURITY_KRB5_DEBUG
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public MiniAccumuloClusterImpl create(AuthenticationToken token) throws Exception
Create a MiniAccumuloCluster using the given Token as the credentials for the root user.- Throws:
Exception
-
create
public MiniAccumuloClusterImpl create(AuthenticationToken token, TestingKdc kdc) throws Exception
- Throws:
Exception
-
create
public MiniAccumuloClusterImpl create(AccumuloITBase testBase, AuthenticationToken token) throws Exception
- Throws:
Exception
-
create
public MiniAccumuloClusterImpl create(AccumuloITBase testBase, AuthenticationToken token, TestingKdc kdc) throws Exception
- Throws:
Exception
-
create
public MiniAccumuloClusterImpl create(AccumuloITBase testBase, AuthenticationToken token, TestingKdc kdc, MiniClusterConfigurationCallback configCallback) throws Exception
- Throws:
Exception
-
create
public MiniAccumuloClusterImpl create(AccumuloClusterHarness testBase, AuthenticationToken token, TestingKdc kdc) throws Exception
- Throws:
Exception
-
create
public MiniAccumuloClusterImpl create(AccumuloClusterHarness testBase, AuthenticationToken token, MiniClusterConfigurationCallback callback) throws Exception
- Throws:
Exception
-
create
public MiniAccumuloClusterImpl create(String testClassName, String testMethodName, AuthenticationToken token) throws Exception
- Throws:
Exception
-
create
public MiniAccumuloClusterImpl create(String testClassName, String testMethodName, AuthenticationToken token, TestingKdc kdc) throws Exception
- Throws:
Exception
-
create
public MiniAccumuloClusterImpl create(String testClassName, String testMethodName, AuthenticationToken token, MiniClusterConfigurationCallback configCallback) throws Exception
- Throws:
Exception
-
create
public MiniAccumuloClusterImpl create(String testClassName, String testMethodName, AuthenticationToken token, MiniClusterConfigurationCallback configCallback, TestingKdc kdc) throws Exception
- Throws:
Exception
-
configureForEnvironment
protected void configureForEnvironment(MiniAccumuloConfigImpl cfg, File folder, org.apache.hadoop.conf.Configuration coreSite, TestingKdc kdc)
-
configureForSsl
protected void configureForSsl(MiniAccumuloConfigImpl cfg, File folder)
-
configureForKerberos
protected void configureForKerberos(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration coreSite, TestingKdc kdc)
-
-