DeterminePartitionsJob: Only create as many reducers as needed

Uses the same technique as IndexGeneratorJob