1 / 14

Submitting A Datagrid Job

Submitting A Datagrid Job. Steve Traylen GridPP Manchester 10th May 2002 s.m.traylen@rl.ac.uk. Hello World - JDL. #############Hello World Job######### Executable = "/bin/echo"; Arguments = "Hello World "; StdOutput = "hello.out"; StdError = "hello.err";

pearly
Download Presentation

Submitting A Datagrid Job

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Submitting A Datagrid Job Steve Traylen GridPP Manchester 10th May 2002 s.m.traylen@rl.ac.uk

  2. Hello World - JDL #############Hello World Job######### Executable = "/bin/echo"; Arguments = "Hello World "; StdOutput = "hello.out"; StdError = "hello.err"; OutputSandbox = {"hello.out","hello.err"}; ######################################

  3. Submit Hello World

  4. Hello World – Jobs Life Cycle • Job’s Life Cycle: • Submitted on a RAL UI. • Submitted to a RB at Cern. • CERN's RB chooses a destination. • Submitted to the compute element. • Executes on a worker node. • Output collected through the RB.

  5. Hello World Status

  6. Hello World Output

  7. Publishing and Finding Data • First Job: random-pairs.jdl • Generates pairs of random numbers. • Saves output to a storage element. • Data location published to a replica catalogue. • Second Job: euclid.jdl • Locates data and chooses a close CE. • Calculates GCD of each pair of numbers.

  8. Random Pairs JDL • JDL: prime-pairs.jdlExecutable = "random_pairs.sh";StdOutput = "random_pairs.out";StdError = "random_pairs.err";InputSandbox = {"random_pairs.sh","random_pairs"};OutputSandbox = {"random_pairs.out","random_pairs.err"};

  9. Random Pairs Script #!/bin/bash OUTPUT=steve/random_pairs13.txtSE=fb00.hep.ph.ic.ac.ukSEROOT=raid3/flatfilesrandom_pairs -m 100000 -M 200000 -t 10000 \ | globus-url-copy - gsiftp://$SE/$SEROOT/$OUTPUTgdmp_register_local_file -p /$SEROOT/$OUTPUT \ -S fb00.hep.ph.ic.ac.uk -P 2000 -Rgdmp_publish_catalogue -S fb00.hep.ph.ic.ac.uk -P 2000 -C

  10. Random Pairs Output

  11. Replica Catalogue • ldapsearch -H ldap://gatekeeper.phy.bris.ac.uk:2010 -b 'mds-vo-name=gridpp,o=grid' -P 2 -x • # steve/random_pairs16.txt, LFROOT, test, Test-Rep-Cat, gridpp, griddn: rf=steve/random_pairs16.txt, fin=LFROOT, lc=test, rc=Test-Rep-Cat, mds-vo-name=gridpp,o=gridobjectclass: topobjectclass: GlobusTopobjectclass: GlobusReplicaLogicalFilefiletype: filesize: 140000filechecksum: 832192984modifytime: 1020783198

  12. Euclid’s JDL. • euclid.jdl.Executable = "euclid.sh";StdOutput = "euclid.out";StdError = "euclid.err";InputSandbox = {"euclid.sh","euclid"}; OutputSandbox = {"euclid.out","euclid.err"};ReplicaCatalog = "ldap://gatekeeper.phy.bris.ac.uk:2010/rc=Test- Rep-cat,mds-vo-name=gridpp,o=grid";InputData = { "LF:steve/random_pairs15.txt" };DataAccessProtocol = { "file" };

  13. Euclid Script. • #!/bin/bashLFN="steve/random_pairs13.txt“echo “The LFN is $LFN”PFN=`edg-brokerinfo -p getLFN2PFN $LFN`echo “The PFN is $PFN”TFN=`edg-brokerinfo -p getTransportFileName $PFN file`echo “The TFN is $TFN” globus-url-copy $TFN - | euclid

  14. Documentation • EDG User Guide:http://marianne.in2p3.fr/datagrid/documentation/EDG-Users-Guide.html • EDG User Guide: A biomedical user point of view.http://www.creatis.insa-lyon.fr/~johan/wp10/testbed1-userguide/ • JDL Howto:http://server11.infn.it/workload-grid/docs/DataGrid-01-TEN-0102-0_1-Document.pdf • GDMP Guide:http://cmsdoc.cern.ch/cms/grid/userguide/userguide-gdmp-3.0.pdf

More Related