code: private void setTaskOutputDir() {
      if (this.jobState.contains(ConfigurationKeys.WRITER_OUTPUT_DIR)) {
        LOG.warn(String.format("Property %s is deprecated. No need to use it if %s is specified.",
            ConfigurationKeys.WRITER_OUTPUT_DIR, ConfigurationKeys.TASK_DATA_ROOT_DIR_KEY));
      } else {
        String workingDir = this.jobState.getProp(ConfigurationKeys.TASK_DATA_ROOT_DIR_KEY);
        this.jobState.setProp(ConfigurationKeys.WRITER_OUTPUT_DIR, new Path(workingDir, TASK_OUTPUT_DIR_NAME).toString());
        LOG.info(String
            .format("Writer Output Directory is set to %s.", this.jobState.getProp(ConfigurationKeys.WRITER_OUTPUT_DIR)));
      }
    }
docs: If {@link ConfigurationKeys#WRITER_OUTPUT_DIR} (which is deprecated) is specified, use its value.
  
  Otherwise, if {@link ConfigurationKeys#TASK_DATA_ROOT_DIR_KEY} is specified, use its value
  plus {@link #TASK_OUTPUT_DIR_NAME}.