code: public static void setOutput(JobConf job, String tableName, String... fieldNames) {
      job.setOutputFormat(DBOutputFormat.class);
      job.setReduceSpeculativeExecution(false);
  
      DBConfiguration dbConf = new DBConfiguration(job);
      
      dbConf.setOutputTableName(tableName);
      dbConf.setOutputFieldNames(fieldNames);
    }
docs: Initializes the reduce-part of the job with the appropriate output settings
  
  @param job
  The job
  @param tableName
  The table to insert data into
  @param fieldNames
  The field names in the table. If unknown, supply the appropriate
  number of nulls.