Package org.apache.accumulo.test
Class ShellServerIT
- java.lang.Object
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.harness.SharedMiniClusterBase
-
- org.apache.accumulo.test.ShellServerIT
-
- All Implemented Interfaces:
ClusterUsers
public class ShellServerIT extends SharedMiniClusterBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShellServerIT.HexFormatter
SimpleFormatter
that will convert each character in the Value from decimal to hexadecimal.static class
ShellServerIT.StringInputStream
static class
ShellServerIT.TestOutputStream
static class
ShellServerIT.TestShell
-
Field Summary
Fields Modifier and Type Field Description org.junit.rules.TestName
name
-
Fields inherited from class org.apache.accumulo.harness.SharedMiniClusterBase
TRUE
-
Fields inherited from class org.apache.accumulo.harness.AccumuloITBase
testName
-
-
Constructor Summary
Constructors Constructor Description ShellServerIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addauths()
void
badLogin()
void
byeQuitExit()
protected void
checkTableForProperty(TableOperations tops, String tableName, String expectedKey, String expectedValue)
void
classpath()
void
clearCls()
void
clonetable()
void
constraint()
void
createTableWithProperties()
void
debug()
Deprecated.int
defaultTimeoutSeconds()
time to wait per-method before declaring a timeout, in seconds.void
deletemany()
void
deleterows()
void
deleteTables()
void
du()
void
durability()
void
egrep()
void
execfile()
void
exporttableImporttable()
void
extensions()
void
formatter()
void
getAuths()
void
grep()
void
groups()
void
help()
void
history()
void
importDirectory()
void
info()
void
interpreter()
void
iter()
void
listcompactions()
void
listscans()
void
maxrow()
void
merge()
void
namespaces()
void
notable()
void
ping()
void
renametable()
void
scans()
void
scansWithClassLoaderContext()
void
setIterOptionPrompt()
void
setscaniterDeletescaniter()
static void
setupMiniCluster()
void
setupShell()
void
sleep()
void
systempermission()
void
tables()
static void
tearDownAfterClass()
void
tearDownShell()
void
testCompactions()
void
testCompactionSelection()
void
testCompactionSelectionAndStrategy()
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.void
testPertableClasspath()
void
testScanScample()
void
testScanTableWithIterSetWithoutProfile()
The purpose of this test is to verify that you can successfully scan a table with a regular iterator.void
testSummaries()
void
testSummarySelection()
void
trace()
void
user()
void
whoami()
-
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, getSslDir, getUniqueNames, testsShouldTimeout
-
-
-
-
Method Detail
-
tearDownAfterClass
public static void tearDownAfterClass()
-
tearDownShell
public void tearDownShell()
-
defaultTimeoutSeconds
public int defaultTimeoutSeconds()
Description copied from class:AccumuloITBase
time to wait per-method before declaring a timeout, in seconds.- Overrides:
defaultTimeoutSeconds
in classAccumuloITBase
-
setscaniterDeletescaniter
public void setscaniterDeletescaniter() throws Exception
- Throws:
Exception
-
debug
@Deprecated public void debug() throws Exception
Deprecated.- Throws:
Exception
-
checkTableForProperty
protected void checkTableForProperty(TableOperations tops, String tableName, String expectedKey, String expectedValue) throws Exception
- Throws:
Exception
-
createTableWithProperties
public void createTableWithProperties() throws Exception
- Throws:
Exception
-
testCompactionSelectionAndStrategy
public void testCompactionSelectionAndStrategy() throws Exception
- Throws:
Exception
-
scansWithClassLoaderContext
public void scansWithClassLoaderContext() throws IOException
- Throws:
IOException
-
testScanTableWithIterSetWithoutProfile
public void testScanTableWithIterSetWithoutProfile() throws Exception
The purpose of this test is to verify that you can successfully scan a table with a regular iterator. It was written to verify that the changes made while updating the setshelliter command did not break the existing setiter capabilities. It tests that a table can be scanned with an iterator both while within a table context and also while in the 'notable' context.- Throws:
Exception
-
testCreateTableWithLocalityGroups
public void testCreateTableWithLocalityGroups() throws Exception
- Throws:
Exception
-
testCreateTableWithMultipleLocalityGroups
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
public void testCreateTableWithLocalityGroupsBadArguments() throws IOException
- Throws:
IOException
-
testCreateTableWithIterators
public void testCreateTableWithIterators() throws Exception
- Throws:
Exception
-
testCreateTableWithMultipleIterators
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
public void testCreateTableWithIteratorsBadArguments() throws IOException
- Throws:
IOException
-
testCreateTableOffline
public void testCreateTableOffline() throws IOException
Verify that table can be created in offline status and then be brought online.- Throws:
IOException
-
testCreateTableWithSplitsFile1
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
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
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
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
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
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
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
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
public void testCreateTableWithCopySplitsFromOtherTable() throws IOException, AccumuloSecurityException, TableNotFoundException, AccumuloException
Use shell to create a table that used splits from another table.
-
testCreateTableWithBinarySplitsFile1
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
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
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
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
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
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
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.
-
-