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
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.conf.Configurationprotected static final StringDelete the tmp directory after running doMROnTableTest.private final Stringprotected static final StringForce use of combiner in doMROnTableTest.private static final org.slf4j.Loggerorg.junit.rules.TestNameprotected static final Stringprivate static final Stringprotected static HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.util.TooldoMROnTableTest(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.ConfigurationgetConf()static voidstatic voidvoidsetConf(org.apache.hadoop.conf.Configuration conf) voidvoidprivate static voidvalidateTable(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:
getConfin interfaceorg.apache.hadoop.conf.Configurable
-
setConf
- Specified by:
setConfin 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(HBaseTestingUtility 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 ImportTsvToolinstance 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
-