public class DiffTables
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Modifier and Type | Class and Description |
|---|---|
static class |
DiffTables.COUNTERS |
static class |
DiffTables.Diff |
static class |
DiffTables.DiffTableMapper |
static class |
DiffTables.ScanState |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
static java.lang.String |
outputDir |
static boolean |
shouldExit |
static java.lang.String |
tablesAreDifferent |
| Constructor and Description |
|---|
DiffTables() |
| Modifier and Type | Method and Description |
|---|---|
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)
Copy all files in a directory to one output file (merge).
|
static org.apache.hadoop.mapreduce.Job |
createSubmittableMapReduceJob(org.apache.hadoop.conf.Configuration conf,
java.lang.String[] args) |
static boolean |
doCommandLine(java.lang.String[] args) |
static void |
main(java.lang.String[] args) |
static void |
printUsage(java.lang.String errorMsg) |
int |
run(java.lang.String[] args) |
public static final java.lang.String NAME
public static final java.lang.String tablesAreDifferent
public static java.lang.String outputDir
public static boolean shouldExit
public static org.apache.hadoop.mapreduce.Job createSubmittableMapReduceJob(org.apache.hadoop.conf.Configuration conf,
java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionpublic int run(java.lang.String[] args)
throws java.lang.Exception
run in interface org.apache.hadoop.util.Tooljava.lang.Exceptionpublic static boolean doCommandLine(java.lang.String[] args)
public static void printUsage(java.lang.String errorMsg)
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.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception