Пример #1
0
  /**
   * Write the child's configuration to the disk and set it in configuration so that the child can
   * pick it up from there.
   *
   * @param lDirAlloc
   * @throws IOException
   */
  void setupChildTaskConfiguration(LocalDirAllocator lDirAlloc) throws IOException {

    Path localTaskFile =
        lDirAlloc.getLocalPathForWrite(
            TaskTracker.getTaskConfFile(
                t.getUser(),
                t.getJobID().toString(),
                t.getTaskID().toString(),
                t.isTaskCleanupTask()),
            conf);

    // write the child's task configuration file to the local disk
    writeLocalTaskFile(localTaskFile.toString(), conf);

    // Set the final job file in the task. The child needs to know the correct
    // path to job.xml. So set this path accordingly.
    t.setJobFile(localTaskFile.toString());
  }