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
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureForEnvironment(MiniAccumuloConfigImpl cfg, File folder, org.apache.hadoop.conf.Configuration coreSite, TestingKdc kdc)
protected void
configureForKerberos(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration coreSite, TestingKdc kdc)
protected void
configureForSsl(MiniAccumuloConfigImpl cfg, File folder)
MiniAccumuloClusterImpl
create(String testClassName, String testMethodName, AuthenticationToken token, MiniClusterConfigurationCallback configCallback, TestingKdc kdc)
MiniAccumuloClusterImpl
create(AccumuloITBase testBase, AuthenticationToken token, TestingKdc kdc, MiniClusterConfigurationCallback configCallback)
-
-
-
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
-
-
Method Detail
-
create
public MiniAccumuloClusterImpl create(AccumuloITBase testBase, AuthenticationToken token, TestingKdc kdc, 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)
-
-