Class DiffTables
- java.lang.Object
-
- org.apache.hadoop.conf.Configured
-
- com.mapr.fs.hbase.tools.mapreduce.DiffTables
-
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
public class DiffTables extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDiffTables.COUNTERSstatic classDiffTables.Diffstatic classDiffTables.DiffTableMapperstatic classDiffTables.ScanState
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMEstatic java.lang.StringoutputDirstatic booleanshouldExitstatic java.lang.StringtablesAreDifferent
-
Constructor Summary
Constructors Constructor Description DiffTables()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancopyMerge(org.apache.hadoop.fs.FileSystem srcFS, org.apache.hadoop.fs.Path srcDir, org.apache.hadoop.fs.FileSystem dstFS, org.apache.hadoop.fs.Path dstFile, org.apache.hadoop.conf.Configuration conf, java.lang.String prefix)Copy all files in a directory to one output file (merge).static org.apache.hadoop.mapreduce.JobcreateSubmittableMapReduceJob(org.apache.hadoop.conf.Configuration conf, java.lang.String[] args)static booleandoCommandLine(java.lang.String[] args)static voidmain(java.lang.String[] args)static voidprintUsage(java.lang.String errorMsg)intrun(java.lang.String[] args)
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
tablesAreDifferent
public static final java.lang.String tablesAreDifferent
- See Also:
- Constant Field Values
-
outputDir
public static java.lang.String outputDir
-
shouldExit
public static boolean shouldExit
-
-
Method Detail
-
createSubmittableMapReduceJob
public static org.apache.hadoop.mapreduce.Job createSubmittableMapReduceJob(org.apache.hadoop.conf.Configuration conf, java.lang.String[] args) throws java.io.IOException- Throws:
java.io.IOException
-
run
public int run(java.lang.String[] args) throws java.lang.Exception- Specified by:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
java.lang.Exception
-
doCommandLine
public static boolean doCommandLine(java.lang.String[] args)
-
printUsage
public static void printUsage(java.lang.String errorMsg)
-
copyMerge
public static boolean copyMerge(org.apache.hadoop.fs.FileSystem srcFS, org.apache.hadoop.fs.Path srcDir, org.apache.hadoop.fs.FileSystem dstFS, org.apache.hadoop.fs.Path dstFile, org.apache.hadoop.conf.Configuration conf, java.lang.String prefix) throws java.io.IOExceptionCopy all files in a directory to one output file (merge).- Throws:
java.io.IOException
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
-