code: public static void main(String[] args) {
      try {
        HadoopLogsAnalyzer analyzer = new HadoopLogsAnalyzer();
  
        int result = ToolRunner.run(analyzer, args);
  
        if (result == 0) {
          return;
        }
  
        System.exit(result);
      } catch (FileNotFoundException e) {
        LOG.error("", e);
        e.printStackTrace(staticDebugOutput);
        System.exit(1);
      } catch (IOException e) {
        LOG.error("", e);
        e.printStackTrace(staticDebugOutput);
        System.exit(2);
      } catch (Exception e) {
        LOG.error("", e);
        e.printStackTrace(staticDebugOutput);
        System.exit(3);
      }
    }
docs: @param args
  
  Last arg is the input file. That file can be a directory, in which
  case you get all the files in sorted order. We will decompress
  files whose nmes end in .gz .
  
  switches: -c collect line types.
  
  -d debug mode
  
  -delays print out the delays [interval between job submit time and
  launch time]
  
  -runtimes print out the job runtimes
  
  -spreads print out the ratio of 10%ile and 90%ile, of both the
  successful map task attempt run times and the the successful
  reduce task attempt run times
  
  -tasktimes prints out individual task time distributions
  
  collects all the line types and prints the first example of each
  one