Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-2862

[HOD] Support PBS env vars in hod configuration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.16.0
    • None
    • contrib/hod
    • None
    • Torque PBS

    Description

      In some batch environments, eg using Torque PBS, scratch spaces are provided on cluster nodes for where jobs should put their temporary files. These are automatically cleaned up when the job exists by an epilogue script.

      For instance, in our local Torque cluster, all nodes have a /scratch partition. For each job, the prologue script creates a scratch folder owned by the user at /scratch/pbstmp.$PBS_JOBID - $PBS_JOBID is then the env var containing the job id, as set by pbs_mom.

      Would it be possible to use these env vars in the configuration of hod. For instance, say I want to create an hdfs on demand using hod, but that the hdfs space should be in /scratch/pbstmp.$PBS_JOBID, not in /tmp/hod say. This would involve HOD supporting env vars in configuration, but knowing when to substitute the env var with it's current value (ie not until running on the correct node where the operation should take place).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              craigm Craig Macdonald
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: