code: public static void setNumberOfThreads(Job job, int threads) {
          job.getConfiguration().setInt(ConfigConstants.CONF_THREADS_PER_SPLIT,
              threads);
      }
docs: Set the number of threads in the pool for running maps.
  
  @param job
  the job to modify
  @param threads
  the new number of threads