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 ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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, 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, String[] args) static booleandoCommandLine(String[] args) static voidstatic voidprintUsage(String errorMsg) intMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
NAME
- See Also:
-
tablesAreDifferent
- See Also:
-
outputDir
-
shouldExit
public static boolean shouldExit
-
-
Constructor Details
-
DiffTables
public DiffTables()
-
-
Method Details
-
createSubmittableMapReduceJob
public static org.apache.hadoop.mapreduce.Job createSubmittableMapReduceJob(org.apache.hadoop.conf.Configuration conf, String[] args) throws IOException - Throws:
IOException
-
run
- Specified by:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
Exception
-
doCommandLine
-
printUsage
-
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, String prefix) throws IOException Copy all files in a directory to one output file (merge).- Throws:
IOException
-
main
- Throws:
Exception
-