Class TestImportTSVWithOperationAttributes
java.lang.Object
org.apache.hadoop.hbase.mapreduce.TestImportTSVWithOperationAttributes
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
public class TestImportTSVWithOperationAttributes
extends Object
implements org.apache.hadoop.conf.Configurable
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.conf.Configuration
protected static final String
Delete the tmp directory after running doMROnTableTest.private final String
protected static final String
Force use of combiner in doMROnTableTest.private static final org.slf4j.Logger
org.junit.rules.TestName
protected static final String
private static final String
protected static HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.util.Tool
doMROnTableTest
(HBaseTestingUtil 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
static void
void
setConf
(org.apache.hadoop.conf.Configuration conf) void
void
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.
-
Field Details
-
CLASS_RULE
-
LOG
-
NAME
-
util
-
DELETE_AFTER_LOAD_CONF
Delete the tmp directory after running doMROnTableTest. Boolean. Default is false. -
FORCE_COMBINER_CONF
Force use of combiner in doMROnTableTest. Boolean. Default is true. -
conf
-
TEST_ATR_KEY
- See Also:
-
FAMILY
- See Also:
-
name
-
-
Constructor Details
-
TestImportTSVWithOperationAttributes
public TestImportTSVWithOperationAttributes()
-
-
Method Details
-
getConf
- Specified by:
getConf
in interfaceorg.apache.hadoop.conf.Configurable
-
setConf
- Specified by:
setConf
in interfaceorg.apache.hadoop.conf.Configurable
-
provisionCluster
- Throws:
Exception
-
releaseCluster
- Throws:
Exception
-
testMROnTable
- Throws:
Exception
-
testMROnTableWithInvalidOperationAttr
- Throws:
Exception
-
doMROnTableTest
private org.apache.hadoop.util.Tool doMROnTableTest(HBaseTestingUtil util, String family, String data, String[] args, int valueMultiplier, boolean dataAvailable) throws Exception Run an ImportTsv job and perform basic validation on the results. Returns the ImportTsvTool
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. Any arguments to pass BEFORE inputFile path is appended.- Returns:
- The Tool instance used to run the test.
- Throws:
Exception
-
validateTable
private static void validateTable(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, String family, int valueMultiplier, boolean dataAvailable) throws IOException Confirm ImportTsv via data in online table.- Throws:
IOException
-