Class DiffTablesWithCrc

  • All Implemented Interfaces:
    org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

    public class DiffTablesWithCrc
    extends org.apache.hadoop.conf.Configured
    implements org.apache.hadoop.util.Tool
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void compareChecksum​(java.lang.String srcFileUri, java.lang.String dstFileUri, java.lang.String mismatchedFile)  
      int launchDiffTablesJob​(java.lang.String diffTableOutDirPathName, java.lang.String srcSubRegionKeyFilePathName, java.lang.String mismatchedPathName, java.lang.String[] args, boolean isSecureCluster)  
      static void main​(java.lang.String[] args)  
      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

      • SrcChecksumJobNAME

        public static final java.lang.String SrcChecksumJobNAME
        See Also:
        Constant Field Values
      • DstChecksumJobNAME

        public static final java.lang.String DstChecksumJobNAME
        See Also:
        Constant Field Values
      • outputDir

        public static java.lang.String outputDir
      • outputDiffCrcDir

        public static java.lang.String outputDiffCrcDir
      • outputFileLocation

        public static java.lang.String outputFileLocation
    • Constructor Detail

      • DiffTablesWithCrc

        public DiffTablesWithCrc()
    • Method Detail

      • compareChecksum

        public static void compareChecksum​(java.lang.String srcFileUri,
                                           java.lang.String dstFileUri,
                                           java.lang.String mismatchedFile)
                                    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
      • launchDiffTablesJob

        public int launchDiffTablesJob​(java.lang.String diffTableOutDirPathName,
                                       java.lang.String srcSubRegionKeyFilePathName,
                                       java.lang.String mismatchedPathName,
                                       java.lang.String[] args,
                                       boolean isSecureCluster)
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception