code: @Override
    public int run(String[] args) throws Exception {
      String[] otherArgs = new GenericOptionsParser(getConf(), args).getRemainingArgs();
      if (otherArgs.length < 2) {
        usage("Wrong number of arguments: " + otherArgs.length);
        return -1;
      }
      if (getConf().get(BigtableOptionsFactory.PROJECT_ID_KEY) == null) {
        usage("Must specify the property " + BigtableOptionsFactory.PROJECT_ID_KEY);
        return -1;
      }
      if (getConf().get(BigtableOptionsFactory.INSTANCE_ID_KEY) == null) {
        usage("Must specify the property" + BigtableOptionsFactory.INSTANCE_ID_KEY);
        return -1;
      }
      String inputVersionString = System.getProperty(ResultSerialization.IMPORT_FORMAT_VER);
      if (inputVersionString != null) {
        getConf().set(ResultSerialization.IMPORT_FORMAT_VER, inputVersionString);
      }
      Job job = createSubmittableJob(getConf(), otherArgs);
      return (job.waitForCompletion(true) ? 0 : 1);
    }
docs: {@inheritDoc}