public class TestHRegionServerBulkLoad extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestHRegionServerBulkLoad.AtomicHFileLoader
Thread that does full scans of the table looking for any partially
completed rows.
|
static class |
TestHRegionServerBulkLoad.AtomicScanReader
Thread that does full scans of the table looking for any partially
completed rows.
|
static class |
TestHRegionServerBulkLoad.MyObserver |
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCKSIZE |
static HBaseClassTestRule |
CLASS_RULE |
static org.apache.hadoop.hbase.io.compress.Compression.Algorithm |
COMPRESSION |
protected static org.apache.hadoop.conf.Configuration |
conf |
protected static byte[][] |
families |
protected static int |
NUM_CFS |
protected static byte[] |
QUAL |
protected static HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestHRegionServerBulkLoad(int duration) |
| Modifier and Type | Method and Description |
|---|---|
static 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.
|
static void |
main(String[] args)
Run test on an HBase instance for 5 minutes.
|
static Collection<Object[]> |
parameters() |
static byte[] |
rowkey(int i)
Create a rowkey compatible with
createHFile(FileSystem, Path, byte[], byte[], byte[], int). |
static void |
setUpBeforeClass() |
void |
setupTable(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 |
testAtomicBulkLoad()
Atomic bulk load.
|
public static final HBaseClassTestRule CLASS_RULE
protected static HBaseTestingUtility UTIL
protected static final org.apache.hadoop.conf.Configuration conf
protected static final byte[] QUAL
protected static final int NUM_CFS
public static int BLOCKSIZE
public static org.apache.hadoop.hbase.io.compress.Compression.Algorithm COMPRESSION
protected static final byte[][] families
public TestHRegionServerBulkLoad(int duration)
public static final Collection<Object[]> parameters()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static byte[] rowkey(int i)
createHFile(FileSystem, Path, byte[], byte[], byte[], int).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
IOExceptionpublic void setupTable(TableName table, int cfs) throws IOException
IOExceptionpublic void testAtomicBulkLoad() throws Exception
ExceptionCopyright © 2007–2019 Cloudera. All rights reserved.