On Tue, 23 Aug 2005, Vega Forneris wrote:
> Hi *,
>
> I've a little problem with variables: we have LCG2_4_0 environment and I
> need that jobs load particular variables (i.e. JAVA_HOME and/or PATH) in
> order to run successfully, but I cannot set it !
>
> Logging as normal users on the CE, everything is loaded a expected ("env"
> command) while launching the same command via globus, only few variables
> are set
>
> globus-job-run contact_string /usr/bin/env
What contact string format are you using?
On the CE itself (i.e. on the head node) jobs are not started via a login
shell, so their environment is very limited; user jobs, however, do not
run on the head node. Here is an example showing how to run a job on a WN
via globus-job-run:
globus-job-run my_CE:2119/jobmanager-lcgpbs -q dteam /usr/bin/env
This should report a complete environment. Note, however, that the
globus-job-run command shall _only_ be used for tests and debugging,
because it does _not_ scale: it leaves a globus-jobmanager process
plus associated perl processes running on the head node per _job_
for the duration of the job. Condor-G, as used by the RB, avoids that.
|