Class ReadWriteIT
- java.lang.Object
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.harness.AccumuloClusterHarness
-
- org.apache.accumulo.test.functional.ReadWriteIT
-
- All Implemented Interfaces:
ClusterUsers
,MiniClusterConfigurationCallback
public class ReadWriteIT extends AccumuloClusterHarness
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.harness.AccumuloClusterHarness
AccumuloClusterHarness.ClusterType
-
Nested classes/interfaces inherited from interface org.apache.accumulo.harness.MiniClusterConfigurationCallback
MiniClusterConfigurationCallback.NoCallback
-
-
Field Summary
-
Fields inherited from class org.apache.accumulo.harness.AccumuloClusterHarness
cluster, clusterConf, krb, type
-
Fields inherited from class org.apache.accumulo.harness.AccumuloITBase
testName
-
Fields inherited from interface org.apache.accumulo.harness.MiniClusterConfigurationCallback
NO_CALLBACK
-
-
Constructor Summary
Constructors Constructor Description ReadWriteIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String[]
args(String... args)
void
configureMiniCluster(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
protected int
defaultTimeoutSeconds()
time to wait per-method before declaring a timeout, in seconds.static void
ingest(AccumuloClient accumuloClient, ClientInfo info, int rows, int cols, int width, int offset, String tableName)
static void
ingest(AccumuloClient accumuloClient, ClientInfo info, int rows, int cols, int width, int offset, String colf, String tableName)
void
interleaved()
void
invalidInstanceName()
void
largeTest()
void
localityGroupChange()
void
localityGroupPerf()
static Mutation
m(String row, String cf, String cq, String value)
void
multiTableTest()
void
sunnyDay()
void
sunnyLG()
create a locality group, write to it and ensure it exists in the RFiles that resultvoid
sunnyLGUsingNewTableConfiguration()
Pretty much identical to sunnyLG, but verifies locality groups are created when configured in NewTableConfiguration prior to table creation.static org.apache.hadoop.io.Text
t(String s)
static void
verify(AccumuloClient accumuloClient, ClientInfo info, int rows, int cols, int width, int offset, String tableName)
-
Methods inherited from class org.apache.accumulo.harness.AccumuloClusterHarness
canRunTest, cleanupTables, cleanupUsers, getAdminPrincipal, getAdminToken, getAdminUser, getClientInfo, getClientProps, getCluster, getClusterConfiguration, getClusterControl, getClusterType, getFileSystem, getKdc, getServerContext, getUsableDir, getUser, saslEnabled, setupCluster, setUpHarness, teardownCluster, tearDownHarness
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, getSslDir, getUniqueNames, testsShouldTimeout
-
-
-
-
Method Detail
-
configureMiniCluster
public void configureMiniCluster(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
- Specified by:
configureMiniCluster
in interfaceMiniClusterConfigurationCallback
- Overrides:
configureMiniCluster
in classAccumuloClusterHarness
-
defaultTimeoutSeconds
protected int defaultTimeoutSeconds()
Description copied from class:AccumuloITBase
time to wait per-method before declaring a timeout, in seconds.- Overrides:
defaultTimeoutSeconds
in classAccumuloITBase
-
invalidInstanceName
public void invalidInstanceName()
-
ingest
public static void ingest(AccumuloClient accumuloClient, ClientInfo info, int rows, int cols, int width, int offset, String tableName) throws Exception
- Throws:
Exception
-
ingest
public static void ingest(AccumuloClient accumuloClient, ClientInfo info, int rows, int cols, int width, int offset, String colf, String tableName) throws Exception
- Throws:
Exception
-
verify
public static void verify(AccumuloClient accumuloClient, ClientInfo info, int rows, int cols, int width, int offset, String tableName) throws Exception
- Throws:
Exception
-
t
public static org.apache.hadoop.io.Text t(String s)
-
sunnyLG
public void sunnyLG() throws Exception
create a locality group, write to it and ensure it exists in the RFiles that result- Throws:
Exception
-
sunnyLGUsingNewTableConfiguration
public void sunnyLGUsingNewTableConfiguration() throws Exception
Pretty much identical to sunnyLG, but verifies locality groups are created when configured in NewTableConfiguration prior to table creation.- Throws:
Exception
-
-