code: public static void main(String[] args) {
          CmdLine cmd = new CmdLine();
          Configuration conf = new Configuration();
          int res = 0;
          try {
              res = ToolRunner.run(conf, cmd, args);
          } catch (Exception e) {
              System.err.println("Error while running MR job");
              e.printStackTrace();
          }
          System.exit(res);
      }
docs: Entry point for this example
  Uses HDFS ToolRunner to wrap processing of
  
  @param args Command-line arguments for HDFS example