Class IntegrationTestImportTsv
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.mapreduce.IntegrationTestImportTsv
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
public class IntegrationTestImportTsv
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
Validate ImportTsv + BulkLoadFiles on a distributed cluster.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static final Stringprotected static final Set<org.apache.hadoop.hbase.KeyValue>protected static final Stringprotected static IntegrationTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoLoadIncrementalHFiles(org.apache.hadoop.fs.Path hfiles, org.apache.hadoop.hbase.TableName tableName) Verify the data described bysimple_tsvmatchessimple_expected.(package private) voidgenerateAndLoad(org.apache.hadoop.hbase.TableName table) org.apache.hadoop.conf.ConfigurationgetConf()private org.apache.hadoop.fs.PathinitGeneratedHFilePath(org.apache.hadoop.hbase.TableName table) static voidstatic voidstatic voidintvoidsetConf(org.apache.hadoop.conf.Configuration conf) voidprotected static voidvalidateDeletedPartitionsFile(org.apache.hadoop.conf.Configuration conf) Confirm the absence of theTotalOrderPartitionerpartitions file.
-
Field Details
-
NAME
-
LOG
-
GENERATED_HFILE_FOLDER_PARAM_KEY
- See Also:
-
simple_tsv
- See Also:
-
name
-
simple_expected
-
util
-
-
Constructor Details
-
IntegrationTestImportTsv
public IntegrationTestImportTsv()
-
-
Method Details
-
getConf
- Specified by:
getConfin interfaceorg.apache.hadoop.conf.Configurable- Overrides:
getConfin classorg.apache.hadoop.conf.Configured
-
setConf
- Specified by:
setConfin interfaceorg.apache.hadoop.conf.Configurable- Overrides:
setConfin classorg.apache.hadoop.conf.Configured
-
provisionCluster
- Throws:
Exception
-
releaseCluster
- Throws:
Exception
-
doLoadIncrementalHFiles
protected void doLoadIncrementalHFiles(org.apache.hadoop.fs.Path hfiles, org.apache.hadoop.hbase.TableName tableName) throws Exception Verify the data described bysimple_tsvmatchessimple_expected.- Throws:
Exception
-
validateDeletedPartitionsFile
protected static void validateDeletedPartitionsFile(org.apache.hadoop.conf.Configuration conf) throws IOException Confirm the absence of theTotalOrderPartitionerpartitions file.- Throws:
IOException
-
testGenerateAndLoad
- Throws:
Exception
-
generateAndLoad
- Throws:
Exception
-
run
- Specified by:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
Exception
-
initGeneratedHFilePath
private org.apache.hadoop.fs.Path initGeneratedHFilePath(org.apache.hadoop.hbase.TableName table) throws IOException - Throws:
IOException
-
main
- Throws:
Exception
-