code: public void setWorkingDirectory(Path dir) throws IOException {
      ensureState(JobState.DEFINE);
      conf.setWorkingDirectory(dir);
    }
docs: Set the current working directory for the default file system.
  
  @param dir the new current working directory.
  @throws IllegalStateException if the job is submitted