Class Inspector

java.lang.Object
com.Lomikel.Hadooper.Inspector

public class Inspector extends Object
Inspector reads HDFS files.
Author:
J.Hrivnac
  • Field Details

    • log

      private static org.apache.logging.log4j.Logger log
      Logging .
  • Constructor Details

  • Method Details

    • inspect

      public String inspect(String action, String fn, int min, int max) throws Exception
      Read/search HDFS files.
      Parameters:
      action - The type of file or reauired action: count, time, map, mapkey, mapkeylimits, seq, csv, txt.
      fn - The file or directory (for MapFiles.
      min - The first row to show (negative gives 0).
      max - The last row to show (0 or negative gives maximum value).
      Throws:
      Exception