Presentation is loading. Please wait.

Presentation is loading. Please wait.

gLite Job Management Christos Theodosiou

Similar presentations


Presentation on theme: "gLite Job Management Christos Theodosiou"— Presentation transcript:

1 gLite Job Management Christos Theodosiou (ctheodos@grid.auth.gr)
User and Application Support Scientific Computing AUTH

2 Overview Description of Grid Infrastructure Design of a batch job
Submission and Management of a job Two basic examples

3 Grid core services

4 Grid clusters

5 Job life cycle

6 Job life cycle

7 New proxy certificate creation with12 hours lifetime
Proxy creation voms-proxy-init -voms <VO> New proxy certificate creation with12 hours lifetime

8 Job preparation Create executable file[s]
Collect necessary input files Create .jdl file

9 Simple example Simple job.jdl sample.
Executable = "/bin/hostname"; Arguments = "-f"; StdOutput = "std.out"; StdError = "std.err"; OutputSandbox = {"std.err","std.out"}; Simple job.jdl sample.

10 Job Submission Find available resources for .jdl Submit job
Check job status Retrieve output

11 List matching resources
glite-wms-job-list-match -a job.jdl List all available resources that match the prescribed .jdl

12 JobID file contains unique ID of the submitted job
Job submission glite-wms-job-submit -a -o JobID first.jdl JobID file contains unique ID of the submitted job

13 Status check glite-wms-job-status -i JobID JobID file created in submission Possible values of status: Waiting, Ready, Running, Aborted, Canceled, Done, Clear.

14 JobID file created in submission Change status value to Canceled.
Job cancellation glite-wms-job-cancel -i JobID JobID file created in submission Change status value to Canceled.

15 Output retrieval glite-wms-job-output -i JobID --dir results The files defined by OutputSandbox variable in .jdl (i.e. "std.err","std.out") will be stored in results directory.

16 Prints the name of the worker node of the Job. $ wn036.grid.auth.gr
Output check cat results/std.out Prints the name of the worker node of the Job. $ wn036.grid.auth.gr

17 A script job needed to be executed
An other example #!/bin/bash # Print Coordinated Universal Time date --utc # Print the name of the host hostname -f A script job needed to be executed

18 InputSandbox variable added.
An other example Executable = "script.sh"; InputSandbox = {"script.sh"}; StdOutput = "std.out"; StdError = "std.err"; OutputSandbox = {"std.err","std.out"}; InputSandbox variable added.

19 Job Submission (..again)
Find available resources for .jdl Submit job Check job status Retrieve output glite-wms-job-list-match -a job.jdl glite-wms-job-submit -a -o NewJobID job.jdl glite-wms-job-status -i NewJobID glite-wms-job-output -i NewJobID --dir new_results

20 Output check Wed May 20 09:23:20 UTC 2011 wn031.grid.auth.gr
cat new_results/std.out Wed May 20 09:23:20 UTC 2011 wn031.grid.auth.gr

21


Download ppt "gLite Job Management Christos Theodosiou"

Similar presentations


Ads by Google