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 + LoadIncrementalHFiles on a distributed cluster.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final String
protected static final Set<org.apache.hadoop.hbase.KeyValue>
protected static final String
protected static IntegrationTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doLoadIncrementalHFiles
(org.apache.hadoop.fs.Path hfiles, org.apache.hadoop.hbase.TableName tableName) Verify the data described bysimple_tsv
matchessimple_expected
.(package private) void
generateAndLoad
(org.apache.hadoop.hbase.TableName table) org.apache.hadoop.conf.Configuration
getConf()
private org.apache.hadoop.fs.Path
initGeneratedHFilePath
(org.apache.hadoop.hbase.TableName table) static void
static void
static void
int
void
setConf
(org.apache.hadoop.conf.Configuration conf) void
protected static void
validateDeletedPartitionsFile
(org.apache.hadoop.conf.Configuration conf) Confirm the absence of theTotalOrderPartitioner
partitions 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:
getConf
in interfaceorg.apache.hadoop.conf.Configurable
- Overrides:
getConf
in classorg.apache.hadoop.conf.Configured
-
setConf
- Specified by:
setConf
in interfaceorg.apache.hadoop.conf.Configurable
- Overrides:
setConf
in 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_tsv
matchessimple_expected
.- Throws:
Exception
-
validateDeletedPartitionsFile
protected static void validateDeletedPartitionsFile(org.apache.hadoop.conf.Configuration conf) throws IOException Confirm the absence of theTotalOrderPartitioner
partitions file.- Throws:
IOException
-
testGenerateAndLoad
- Throws:
Exception
-
generateAndLoad
- Throws:
Exception
-
run
- Specified by:
run
in 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
-