public class TestImportExport extends Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
TestImportExport.TableWALActionListener
This listens to the
WALActionsListener.visitLogEntryBeforeWrite(RegionInfo, WALKey, WALEdit) to
identify that an entry is written to the Write Ahead Log for the given table. |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static String |
EXPORT_BATCH_SIZE |
private org.apache.hadoop.hbase.TableName |
EXPORT_TABLE |
private static byte[] |
FAMILYA |
private static String |
FAMILYA_STRING |
private static byte[] |
FAMILYB |
private static String |
FAMILYB_STRING |
private static String |
FQ_OUTPUT_DIR |
private org.apache.hadoop.hbase.TableName |
IMPORT_TABLE |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static long |
now |
private static String |
OUTPUT_DIR |
private static byte[] |
QUAL |
private static byte[] |
ROW1 |
private static byte[] |
ROW2 |
private static byte[] |
ROW3 |
protected static HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestImportExport() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
void |
announce() |
static void |
beforeClass() |
void |
cleanup() |
private int |
getCount(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.filter.Filter filter)
Count the number of keyvalues in the specified table with the given filter
|
protected boolean |
runExport(String[] args)
Runs an export job with the specified command line args
|
protected void |
runExportMain(String[] args) |
(package private) boolean |
runImport(String[] args)
Runs an import job with the specified command line args
|
void |
testAddFilterAndArguments()
Test addFilterAndArguments method of Import This method set couple
parameters into Configuration
|
void |
testDurability() |
void |
testExportMain()
test main method.
|
void |
testExportScan() |
void |
testExportScannerBatching()
Test export scanner batching
|
void |
testImport94Table()
Test import data from 0.94 exported file
|
void |
testImportMain()
test main method.
|
void |
testKeyValueImporter()
Test map method of Importer
|
void |
testMetaExport()
Test export hbase:meta table
|
void |
testSimpleCase()
Test simple replication case with column mapping
|
void |
testWithDeletes() |
void |
testWithFilter()
Create a simple table, run an Export Job on it, Import with filtering on, verify counts,
attempt with invalid values.
|
void |
testWithMultipleDeleteFamilyMarkersOfSameRowSameFamily() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
protected static final HBaseTestingUtility UTIL
private static final byte[] ROW1
private static final byte[] ROW2
private static final byte[] ROW3
private static final String FAMILYA_STRING
private static final String FAMILYB_STRING
private static final byte[] FAMILYA
private static final byte[] FAMILYB
private static final byte[] QUAL
private static final String OUTPUT_DIR
private static String FQ_OUTPUT_DIR
private static final String EXPORT_BATCH_SIZE
private static final long now
private final org.apache.hadoop.hbase.TableName EXPORT_TABLE
private final org.apache.hadoop.hbase.TableName IMPORT_TABLE
public final org.junit.rules.TestName name
public TestImportExport()
public static void beforeClass() throws Throwable
Throwablepublic static void afterClass() throws Throwable
Throwablepublic void announce()
protected boolean runExport(String[] args) throws Throwable
args - IOExceptionInterruptedExceptionClassNotFoundExceptionThrowableprotected void runExportMain(String[] args) throws Throwable
Throwableboolean runImport(String[] args) throws Throwable
args - IOExceptionInterruptedExceptionClassNotFoundExceptionThrowablepublic void testSimpleCase() throws Throwable
public void testMetaExport() throws Throwable
Throwablepublic void testImport94Table() throws Throwable
Throwablepublic void testExportScannerBatching() throws Throwable
Throwablepublic void testWithDeletes() throws Throwable
Throwablepublic void testWithMultipleDeleteFamilyMarkersOfSameRowSameFamily() throws Throwable
Throwablepublic void testWithFilter() throws Throwable
Throwableprivate int getCount(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.filter.Filter filter) throws IOException
table - the table to scanIOExceptionpublic void testImportMain() throws Throwable
Throwablepublic void testExportScan() throws Exception
Exceptionpublic void testExportMain() throws Throwable
Throwablepublic void testKeyValueImporter() throws Throwable
Throwablepublic void testAddFilterAndArguments() throws IOException
IOExceptionpublic void testDurability() throws Throwable
ThrowableCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.