@Override
  public int run(String[] otherArgs) throws Exception {
    if (otherArgs.length != 2) {
      System.err.println("Wrong number of arguments: " + otherArgs.length);
      System.err.println("Usage: " + NAME + " <input> <tablename>");
      return -1;
    }
    Job job = configureJob(getConf(), otherArgs);
    return (job.waitForCompletion(true) ? 0 : 1);
  }
Main entry point.
@param otherArgs The command line parameters after ToolRunner handles standard.
@throws Exception When running the job fails.
hbase-examples/src/main/java/org/apache/hadoop/hbase/mapreduce/SampleUploader.java