public class TestImportExport extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestImportExport.MetadataController |
private static class |
TestImportExport.TableWALActionListener
This listens to the
TestImportExport.TableWALActionListener.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 |
static String |
TEST_ATTR |
static String |
TEST_TAG |
static byte |
TEST_TAG_TYPE |
protected static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestImportExport() |
Modifier and Type | Method and Description |
---|---|
static void |
afterClass() |
void |
announce() |
static void |
beforeClass() |
private void |
checkWhetherTagExists(org.apache.hadoop.hbase.TableName table,
boolean tagExists) |
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 n * @return true if job completed
successfully nnn
|
protected void |
runExportMain(String[] args) |
(package private) boolean |
runImport(String[] args)
Runs an import job with the specified command line args n * @return true if job completed
successfully nnn
|
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 n
|
void |
testImportMain()
test main method.
|
void |
testKeyValueImporter()
Test map method of Importer
|
void |
testMetaExport()
Test export hbase:meta table n
|
void |
testSimpleCase()
Test simple replication case with column mapping n
|
void |
testTagsAddition()
Add cell tags to delete mutations, run export and import tool and verify that tags are present
in import table also.
|
void |
testTagsWithEmptyCodec()
Set hbase.client.rpc.codec and hbase.client.default.rpc.codec both to empty string This means
it will use no Codec.
|
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 static final byte TEST_TAG_TYPE
public static final String TEST_ATTR
public static final String TEST_TAG
public final org.junit.rules.TestName name
public TestImportExport()
public static void beforeClass() throws Throwable
Throwable
public static void afterClass() throws Throwable
Throwable
public void announce()
protected boolean runExport(String[] args) throws Throwable
Throwable
protected void runExportMain(String[] args) throws Throwable
Throwable
boolean runImport(String[] args) throws Throwable
Throwable
public void testSimpleCase() throws Throwable
Throwable
public void testMetaExport() throws Throwable
Throwable
public void testImport94Table() throws Throwable
Throwable
public void testExportScannerBatching() throws Throwable
Throwable
public void testWithDeletes() throws Throwable
Throwable
public void testWithMultipleDeleteFamilyMarkersOfSameRowSameFamily() throws Throwable
Throwable
public void testWithFilter() throws Throwable
Throwable
private int getCount(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.filter.Filter filter) throws IOException
table
- the table to scanIOException
public void testImportMain() throws Throwable
Throwable
public void testExportScan() throws Exception
Exception
public void testExportMain() throws Throwable
Throwable
public void testKeyValueImporter() throws Throwable
Throwable
public void testAddFilterAndArguments() throws IOException
IOException
public void testDurability() throws Throwable
Throwable
public void testTagsAddition() throws Throwable
Throwable
- throws Throwable.private void checkWhetherTagExists(org.apache.hadoop.hbase.TableName table, boolean tagExists) throws IOException
IOException
public void testTagsWithEmptyCodec() throws Exception
Exception
- ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.