Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      DiffTables()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class org.apache.hadoop.conf.Configured

        getConf, setConf
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.hadoop.conf.Configurable

        getConf, setConf
    • Field Detail

      • 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
    • Constructor Detail

      • DiffTables

        public DiffTables()
    • 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:
        run in interface org.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.IOException
        Copy 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