public class TestImportTsv extends Object implements org.apache.hadoop.conf.Configurable
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
protected static String |
DELETE_AFTER_LOAD_CONF |
org.junit.rules.ExpectedException |
exception |
protected static String |
FORCE_COMBINER_CONF
Force use of combiner in doMROnTableTest.
|
protected static String |
NAME |
protected static HBaseTestingUtility |
util |
| Constructor and Description |
|---|
TestImportTsv() |
public static final HBaseClassTestRule CLASS_RULE
protected static HBaseTestingUtility util
protected static final String DELETE_AFTER_LOAD_CONF
protected static final String FORCE_COMBINER_CONF
public org.junit.rules.ExpectedException exception
public TestImportTsv()
public org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic static void provisionCluster() throws Exception
Exceptionpublic static void releaseCluster() throws Exception
Exceptionpublic void testMROnTable() throws Exception
Exceptionpublic void testMROnTableWithTimestamp() throws Exception
Exceptionpublic void testMROnTableWithCustomMapper() throws Exception
Exceptionpublic void testBulkOutputWithoutAnExistingTable() throws Exception
Exceptionpublic void testBulkOutputWithAnExistingTable() throws Exception
Exceptionpublic void testBulkOutputWithAnExistingTableNoStrictTrue() throws Exception
Exceptionpublic void testJobConfigurationsWithTsvImporterTextMapper() throws Exception
Exceptionpublic void testBulkOutputWithTsvImporterTextMapper() throws Exception
Exceptionpublic void testWithoutAnExistingTableAndCreateTableSetToNo() throws Exception
Exceptionpublic void testMRWithoutAnExistingTable() throws Exception
Exceptionpublic void testJobConfigurationsWithDryMode() throws Exception
Exceptionpublic void testDryModeWithoutBulkOutputAndTableExists() throws Exception
Exceptionpublic void testDryModeWithoutBulkOutputAndTableDoesNotExists() throws Exception
Exceptionpublic void testDryModeWithBulkOutputAndTableExists() throws Exception
Exceptionpublic void testDryModeWithBulkOutputAndTableDoesNotExistsCreateTableSetToNo() throws Exception
Exceptionpublic void testDryModeWithBulkModeAndTableDoesNotExistsCreateTableSetToYes() throws Exception
Exceptionpublic void testTsvImporterTextMapperWithInvalidData() throws Exception
Exceptionpublic void testSkipEmptyColumns() throws Exception
Exceptionprotected static org.apache.hadoop.util.Tool doMROnTableTest(HBaseTestingUtility util, TableName table, String family, String data, Map<String,String> args) throws Exception
Exceptionprotected static org.apache.hadoop.util.Tool doMROnTableTest(HBaseTestingUtility util, TableName table, String family, String data, Map<String,String> args, int valueMultiplier, int expectedKVCount) throws Exception
Tool instance so that other tests can
inspect it for further validation as necessary. This method is static to
insure non-reliance on instance's util/conf facilities.args - Any arguments to pass BEFORE inputFile path is appended.ExceptionCopyright © 2007–2019 Cloudera. All rights reserved.