140 likes | 218 Views
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";
E N D
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"; OutputSandbox = {"hello.out","hello.err"}; ######################################
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.
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.
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"};
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
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
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" };
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
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