Class AccumuloInputFormatIT
- java.lang.Object
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.harness.AccumuloClusterHarness
-
- org.apache.accumulo.test.mapreduce.AccumuloInputFormatIT
-
- All Implemented Interfaces:
ClusterUsers
,MiniClusterConfigurationCallback
public class AccumuloInputFormatIT extends AccumuloClusterHarness
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AccumuloInputFormatIT.BadPasswordSplitsAccumuloInputFormat
AccumuloInputFormat which returns an "empty" RangeInputSplitstatic class
AccumuloInputFormatIT.EmptySplitsAccumuloInputFormat
AccumuloInputFormat which returns an "empty" RangeInputSplit-
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 AccumuloInputFormatIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
before()
void
configureMiniCluster(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
protected int
defaultTimeoutSeconds()
time to wait per-method before declaring a timeout, in seconds.void
testCorrectRangeInputSplits()
void
testGetSplits()
Tests several different paths through the getSplits() method by setting different properties and verifying the results.void
testGetSplitsNoReadPermission()
void
testGetSplitsWithNamespaceReadPermission()
void
testMap()
void
testMapWithBatchScanner()
void
testPartialFailedInputSplitDelegationToConfiguration()
void
testPartialInputSplitDelegationToConfiguration()
void
testSample()
-
Methods inherited from class org.apache.accumulo.harness.AccumuloClusterHarness
canRunTest, cleanupTables, cleanupUsers, getAdminPrincipal, getAdminToken, getAdminUser, getCluster, getClusterConfiguration, getClusterControl, getClusterType, getConnector, getFileSystem, getKdc, getUsableDir, getUser, setUp, setupCluster, teardownCluster, tearDownKdc
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, getSslDir, getUniqueNames, testsShouldTimeout
-
-
-
-
Method Detail
-
defaultTimeoutSeconds
protected int defaultTimeoutSeconds()
Description copied from class:AccumuloITBase
time to wait per-method before declaring a timeout, in seconds.- Overrides:
defaultTimeoutSeconds
in classAccumuloITBase
-
configureMiniCluster
public void configureMiniCluster(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
- Specified by:
configureMiniCluster
in interfaceMiniClusterConfigurationCallback
- Overrides:
configureMiniCluster
in classAccumuloClusterHarness
-
before
public void before()
-
testGetSplits
public void testGetSplits() throws Exception
Tests several different paths through the getSplits() method by setting different properties and verifying the results.- Throws:
Exception
-
testCorrectRangeInputSplits
public void testCorrectRangeInputSplits() throws Exception
- Throws:
Exception
-
testGetSplitsNoReadPermission
public void testGetSplitsNoReadPermission() throws Exception
- Throws:
Exception
-
testGetSplitsWithNamespaceReadPermission
public void testGetSplitsWithNamespaceReadPermission() throws Exception
- Throws:
Exception
-
testPartialInputSplitDelegationToConfiguration
public void testPartialInputSplitDelegationToConfiguration() throws Exception
- Throws:
Exception
-
-