public class TestImportTSVWithOperationAttributes extends Object implements org.apache.hadoop.conf.Configurable
Modifier and Type | Class and Description |
---|---|
static class |
TestImportTSVWithOperationAttributes.OperationAttributesTestController |
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
protected static String |
DELETE_AFTER_LOAD_CONF
Delete the tmp directory after running doMROnTableTest.
|
private String |
FAMILY |
protected static String |
FORCE_COMBINER_CONF
Force use of combiner in doMROnTableTest.
|
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
protected static String |
NAME |
private static String |
TEST_ATR_KEY |
protected static HBaseTestingUtility |
util |
Constructor and Description |
---|
TestImportTSVWithOperationAttributes() |
Modifier and Type | Method and Description |
---|---|
private org.apache.hadoop.util.Tool |
doMROnTableTest(HBaseTestingUtility util,
String family,
String data,
String[] args,
int valueMultiplier,
boolean dataAvailable)
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 |
testMROnTable() |
void |
testMROnTableWithInvalidOperationAttr() |
private static void |
validateTable(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.TableName tableName,
String family,
int valueMultiplier,
boolean dataAvailable)
Confirm ImportTsv via data in online table.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
protected static HBaseTestingUtility util
protected static final String DELETE_AFTER_LOAD_CONF
protected static final String FORCE_COMBINER_CONF
private static org.apache.hadoop.conf.Configuration conf
private static final String TEST_ATR_KEY
private final String FAMILY
public org.junit.rules.TestName name
public TestImportTSVWithOperationAttributes()
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public static void provisionCluster() throws Exception
Exception
public static void releaseCluster() throws Exception
Exception
public void testMROnTable() throws Exception
Exception
public void testMROnTableWithInvalidOperationAttr() throws Exception
Exception
private org.apache.hadoop.util.Tool doMROnTableTest(HBaseTestingUtility util, String family, String data, String[] args, int valueMultiplier, boolean dataAvailable) 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. n *
Any arguments to pass BEFORE inputFile path is appended. n * @return The Tool instance used to
run the test.Exception
private static void validateTable(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, String family, int valueMultiplier, boolean dataAvailable) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.