Class TestHRegionServerBulkLoad
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestHRegionServerBulkLoad
Tests bulk loading of HFiles and shows the atomicity or lack of atomicity of the region server's
bullkLoad functionality.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Thread that does full scans of the table looking for any partially completed rows.static class
Thread that does full scans of the table looking for any partially completed rows.(package private) static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
static final HBaseClassTestRule
static org.apache.hadoop.hbase.io.compress.Compression.Algorithm
protected static final org.apache.hadoop.conf.Configuration
protected static final byte[][]
private static final org.slf4j.Logger
protected static final int
protected static final byte[]
private int
protected static HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
createHFile
(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 String
family
(int i) static void
Run 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) void
runAtomicBulkloadTest
(org.apache.hadoop.hbase.TableName tableName, int millisToRun, int numScanners) private void
setConf
(org.apache.hadoop.conf.Configuration c) static void
void
setupTable
(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.void
Atomic 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
-