public class TestImportTSVWithVisibilityLabels 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
Delete the tmp directory after running doMROnTableTest.
|
protected static String |
FORCE_COMBINER_CONF
Force use of combiner in doMROnTableTest.
|
org.junit.rules.TestName |
name |
protected static String |
NAME |
protected static HBaseTestingUtility |
util |
| Constructor and Description |
|---|
TestImportTSVWithVisibilityLabels() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.apache.hadoop.util.Tool |
doMROnTableTest(HBaseTestingUtility util,
String family,
String data,
String[] args,
int valueMultiplier) |
protected static org.apache.hadoop.util.Tool |
doMROnTableTest(HBaseTestingUtility util,
String family,
String data,
String[] args,
int valueMultiplier,
int expectedKVCount)
Run an ImportTsv job and perform basic validation on the results.
|
org.apache.hadoop.conf.Configuration |
getConf() |
static void |
provisionCluster() |
static void |
releaseCluster() |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
void |
testBulkOutputWithInvalidLabels() |
void |
testBulkOutputWithTsvImporterTextMapper() |
void |
testBulkOutputWithTsvImporterTextMapperWithInvalidLabels() |
void |
testMROnTable() |
void |
testMROnTableWithBulkload() |
void |
testMROnTableWithDeletes() |
void |
testMRWithOutputFormat() |
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.TestName name
public TestImportTSVWithVisibilityLabels()
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 testMROnTableWithDeletes() throws Exception
Exceptionpublic void testMROnTableWithBulkload() throws Exception
Exceptionpublic void testBulkOutputWithTsvImporterTextMapper() throws Exception
Exceptionpublic void testMRWithOutputFormat() throws Exception
Exceptionpublic void testBulkOutputWithInvalidLabels() throws Exception
Exceptionpublic void testBulkOutputWithTsvImporterTextMapperWithInvalidLabels() throws Exception
Exceptionprotected static org.apache.hadoop.util.Tool doMROnTableTest(HBaseTestingUtility util, String family, String data, String[] args, int valueMultiplier) throws Exception
Exceptionprotected static org.apache.hadoop.util.Tool doMROnTableTest(HBaseTestingUtility util, String family, String data, 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.expectedKVCount - Expected KV count. pass -1 to skip the kvcount checkExceptionCopyright © 2007–2019 Cloudera. All rights reserved.