Package org.apache.accumulo.test.shell
Class ShellCreateTableIT
- java.lang.Object
-
- org.apache.accumulo.harness.WithTestNames
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.harness.SharedMiniClusterBase
-
- org.apache.accumulo.test.shell.ShellCreateTableIT
-
- All Implemented Interfaces:
ClusterUsers
@Tag("MiniClusterOnly") @Tag("SunnyDay") public class ShellCreateTableIT extends SharedMiniClusterBase
-
-
Field Summary
-
Fields inherited from class org.apache.accumulo.harness.SharedMiniClusterBase
TRUE
-
Fields inherited from class org.apache.accumulo.harness.AccumuloITBase
MINI_CLUSTER_ONLY, random, STANDALONE_CAPABLE_CLUSTER, SUNNY_DAY, ZOOKEEPER_TESTING_SERVER
-
-
Constructor Summary
Constructors Constructor Description ShellCreateTableIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
setupMiniCluster()
void
setupShell()
static void
tearDownAfterAll()
void
tearDownShell()
void
testCreateTableOffline()
Verify that table can be created in offline status and then be brought online.void
testCreateTableWithBinarySplitsFile1()
Use shell to create a table with a supplied file containing splits.void
testCreateTableWithBinarySplitsFile2()
Use shell to create a table with a supplied file containing splits.void
testCreateTableWithBinarySplitsFile3()
Use shell to create a table with a supplied file containing splits.void
testCreateTableWithBinarySplitsFile4()
Use shell to create a table with a supplied file containing splits.void
testCreateTableWithBinarySplitsFile5()
Use shell to create a table with a supplied file containing splits.void
testCreateTableWithBinarySplitsFile6()
Use shell to create a table with a supplied file containing splits.void
testCreateTableWithBinarySplitsFile7()
Use shell to create a table with a supplied file containing splits.void
testCreateTableWithCopySplitsFromOtherTable()
Use shell to create a table that used splits from another table.void
testCreateTableWithEmptySplitFile()
Use shell to create a table with a supplied file containing splits.void
testCreateTableWithIterators()
void
testCreateTableWithIteratorsBadArguments()
void
testCreateTableWithLocalityGroups()
void
testCreateTableWithLocalityGroupsBadArguments()
void
testCreateTableWithMultipleIterators()
Due to the existing complexity of the createtable command, the createtable help only displays an example of setting one iterator upon table creation.void
testCreateTableWithMultipleLocalityGroups()
Due to the existing complexity of the createtable command, the createtable help only displays an example of setting one locality group.void
testCreateTableWithSplitsFile1()
Use shell to create a table with a supplied file containing splits.void
testCreateTableWithSplitsFile2()
Use shell to create a table with a supplied file containing splits.void
testCreateTableWithSplitsFile3()
Use shell to create a table with a supplied file containing splits.void
testCreateTableWithSplitsFile4()
Use shell to create a table with a supplied file containing splits.void
testCreateTableWithSplitsFile5()
Use shell to create a table with a supplied file containing splits.void
testCreateTableWithSplitsFile6()
Use shell to create a table with a supplied file containing splits.void
testCreateTableWithSplitsFile7()
Use shell to create a table with a supplied file containing splits.-
Methods inherited from class org.apache.accumulo.harness.SharedMiniClusterBase
getAdminPrincipal, getAdminUser, getClientInfo, getClientProps, getCluster, getKdc, getMiniClusterDir, getPrincipal, getRootPassword, getToken, getUser, saslEnabled, startMiniCluster, startMiniClusterWithConfig, stopMiniCluster
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, defaultTimeout, getOnlyElement, getOnlyElement, getSslDir, getUniqueNames, initJar
-
Methods inherited from class org.apache.accumulo.harness.WithTestNames
setTestName, testName
-
-
-
-
Method Detail
-
setupMiniCluster
@BeforeAll public static void setupMiniCluster() throws Exception
- Throws:
Exception
-
tearDownAfterAll
@AfterAll public static void tearDownAfterAll()
-
tearDownShell
@AfterEach public void tearDownShell()
-
testCreateTableWithLocalityGroups
@Test public void testCreateTableWithLocalityGroups() throws Exception
- Throws:
Exception
-
testCreateTableWithMultipleLocalityGroups
@Test public void testCreateTableWithMultipleLocalityGroups() throws Exception
Due to the existing complexity of the createtable command, the createtable help only displays an example of setting one locality group. It is possible to set multiple groups if needed. This test verifies that capability.- Throws:
Exception
-
testCreateTableWithLocalityGroupsBadArguments
@Test public void testCreateTableWithLocalityGroupsBadArguments() throws IOException
- Throws:
IOException
-
testCreateTableWithIterators
@Test public void testCreateTableWithIterators() throws Exception
- Throws:
Exception
-
testCreateTableWithMultipleIterators
@Test public void testCreateTableWithMultipleIterators() throws Exception
Due to the existing complexity of the createtable command, the createtable help only displays an example of setting one iterator upon table creation. It is possible to set multiple if needed. This test verifies that capability.- Throws:
Exception
-
testCreateTableWithIteratorsBadArguments
@Test public void testCreateTableWithIteratorsBadArguments() throws IOException
- Throws:
IOException
-
testCreateTableOffline
@Test public void testCreateTableOffline() throws IOException
Verify that table can be created in offline status and then be brought online.- Throws:
IOException
-
testCreateTableWithSplitsFile1
@Test public void testCreateTableWithSplitsFile1() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits will be contained in a file, sorted and un-encoded with no repeats or blank lines.
-
testCreateTableWithSplitsFile2
@Test public void testCreateTableWithSplitsFile2() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits will be contained in a file, unsorted and un-encoded with no repeats or blank lines.
-
testCreateTableWithSplitsFile3
@Test public void testCreateTableWithSplitsFile3() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits will be contained in a file, sorted and encoded with no repeats or blank lines.
-
testCreateTableWithSplitsFile4
@Test public void testCreateTableWithSplitsFile4() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits will be contained in a file, sorted and un-encoded with a blank line and no repeats.
-
testCreateTableWithSplitsFile5
@Test public void testCreateTableWithSplitsFile5() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits will be contained in a file, sorted and un-encoded with a blank line and no repeats.
-
testCreateTableWithSplitsFile6
@Test public void testCreateTableWithSplitsFile6() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits will be contained in a file, unsorted and un-encoded with a blank line and repeats.
-
testCreateTableWithSplitsFile7
@Test public void testCreateTableWithSplitsFile7() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits will be contained in a file, sorted and encoded with a blank line and repeats.
-
testCreateTableWithEmptySplitFile
@Test public void testCreateTableWithEmptySplitFile() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits file will be empty.
-
testCreateTableWithCopySplitsFromOtherTable
@Test public void testCreateTableWithCopySplitsFromOtherTable() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table that used splits from another table.
-
testCreateTableWithBinarySplitsFile1
@Test public void testCreateTableWithBinarySplitsFile1() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits will be contained in a file, sorted and encoded with no repeats or blank lines.
-
testCreateTableWithBinarySplitsFile2
@Test public void testCreateTableWithBinarySplitsFile2() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits will be contained in a file, unsorted and encoded with no repeats or blank lines.
-
testCreateTableWithBinarySplitsFile3
@Test public void testCreateTableWithBinarySplitsFile3() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits will be contained in a file, sorted and encoded with no repeats or blank lines.
-
testCreateTableWithBinarySplitsFile4
@Test public void testCreateTableWithBinarySplitsFile4() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits will be contained in a file, sorted and encoded with a blank line and no repeats.
-
testCreateTableWithBinarySplitsFile5
@Test public void testCreateTableWithBinarySplitsFile5() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits will be contained in a file, sorted and encoded with a blank line and no repeats.
-
testCreateTableWithBinarySplitsFile6
@Test public void testCreateTableWithBinarySplitsFile6() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits will be contained in a file, unsorted and encoded with a blank line and repeats.
-
testCreateTableWithBinarySplitsFile7
@Test public void testCreateTableWithBinarySplitsFile7() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table with a supplied file containing splits. The splits will be contained in a file, sorted and encoded with a blank line and repeats.
-
-