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.
|
(package private) static class |
TestHRegionServerBulkLoad.FindBulkHBaseListener |
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 |
private static org.slf4j.Logger |
LOG |
protected static int |
NUM_CFS |
protected static byte[] |
QUAL |
private int |
sleepDuration |
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.
|
(package private) static String |
family(int i) |
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) . |
(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 |
setUpBeforeClass() |
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 |
testAtomicBulkLoad()
Atomic bulk load.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
protected static HBaseTestingUtility UTIL
protected static final org.apache.hadoop.conf.Configuration conf
protected static final byte[] QUAL
protected static final int NUM_CFS
private int sleepDuration
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
Exception
public 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
IOException
public void setupTable(org.apache.hadoop.hbase.TableName table, int cfs) throws IOException
IOException
public void testAtomicBulkLoad() throws Exception
Exception
void runAtomicBulkloadTest(org.apache.hadoop.hbase.TableName tableName, int millisToRun, int numScanners) throws Exception
Exception
public static void main(String[] args) throws Exception
Exception
private void setConf(org.apache.hadoop.conf.Configuration c)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.