Class TestHRegionServerBulkLoad
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestHRegionServerBulkLoad
- Direct Known Subclasses:
TestHRegionServerBulkLoadWithOldClient
Tests bulk loading of HFiles and shows the atomicity or lack of atomicity of the region server's
bullkLoad functionality.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThread that does full scans of the table looking for any partially completed rows.static classThread that does full scans of the table looking for any partially completed rows.(package private) static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic final HBaseClassTestRulestatic org.apache.hadoop.hbase.io.compress.Compression.Algorithmprotected static final org.apache.hadoop.conf.Configurationprotected static final byte[][]private static final org.slf4j.Loggerprotected static final intprotected static final byte[]private intprotected static HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateHFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, byte[] family, byte[] qualifier, byte[] value, int numRows) Create an HFile with the given number of rows with a specified value.(package private) static Stringfamily(int i) static voidRun test on an HBase instance for 5 minutes.static final Collection<Object[]>static byte[]rowkey(int i) Create a rowkey compatible withcreateHFile(FileSystem, Path, byte[], byte[], byte[], int).(package private) voidrunAtomicBulkloadTest(org.apache.hadoop.hbase.TableName tableName, int millisToRun, int numScanners) private voidsetConf(org.apache.hadoop.conf.Configuration c) static voidvoidsetupTable(org.apache.hadoop.hbase.TableName table, int cfs) Creates a table with given table name and specified number of column families if the table does not already exist.voidAtomic bulk load.
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
conf
-
QUAL
-
NUM_CFS
- See Also:
-
sleepDuration
-
BLOCKSIZE
-
COMPRESSION
-
families
-
-
Constructor Details
-
TestHRegionServerBulkLoad
-
-
Method Details
-
parameters
-
setUpBeforeClass
- Throws:
Exception
-
rowkey
Create a rowkey compatible withcreateHFile(FileSystem, Path, byte[], byte[], byte[], int). -
family
-
createHFile
public static void createHFile(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, byte[] family, byte[] qualifier, byte[] value, int numRows) throws IOException Create an HFile with the given number of rows with a specified value.- Throws:
IOException
-
setupTable
Creates a table with given table name and specified number of column families if the table does not already exist.- Throws:
IOException
-
testAtomicBulkLoad
Atomic bulk load.- Throws:
Exception
-
runAtomicBulkloadTest
void runAtomicBulkloadTest(org.apache.hadoop.hbase.TableName tableName, int millisToRun, int numScanners) throws Exception - Throws:
Exception
-
main
Run test on an HBase instance for 5 minutes. This assumes that the table under test only has a single region.- Throws:
Exception
-
setConf
-