Changes between Initial Version and Version 1 of edg4


Ignore:
Timestamp:
05/06/2008 15:13:11 (16 years ago)
Author:
/O=GRID-FR/C=FR/O=CNRS/OU=LPSC/CN=Fabian Lambert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • edg4

    v1 v1  
     1== Analyse d'un job avec !InputData==
     2
     3Ce tutoriel décrit comment choisir son SE en fonction des données requises par un job. Il décrit également comment utiliser les données d'un SE.
     4
     5Pour lancer un job, vous avez besoin de quatre fichiers
     6
     7    * Le fichier JDL (Job Description Langage)
     8      Le fichier job.jdl est le fichier qui décrit votre job. Dans ce fichier vous trouverez une ligne de commentaire (#...) qui décrit chaque nouvelle instruction du fichier JDL.
     9    * L'executable
     10      Le fichier job.sh est le script qui va être exécuter sur la machine distante (le WN)
     11    * Les données typeAnimal et nomAnimal
     12
     13 * __Copie des fichiers sur le SE__ [[BR]] Les deux fichiers de données sont copiés sur le SE. Les LFNs choisis correspondent au nom des fichiers eux mêmes.
     14 {{{
     15[lambert@lpsc-ui gliteWMS4]$ lcg-cr --vo atlas -l nomAnimal -d srm://lpsc-se-dpm-server.in2p3.fr/dpm/in2p3.fr/home/atlas/flambert/nomAnimal nomAnimal
     16guid:48e95bbc-1c55-4bc2-aaac-575dcf0b9552
     17[lambert@lpsc-ui gliteWMS4]$ lcg-cr --vo atlas -l typeAnimal -d srm://lpsc-se-dpm-server.in2p3.fr/dpm/in2p3.fr/home/atlas/flambert/typeAnimal typeAnimal
     18guid:0111c73e-edf8-4dfa-a4d1-298f5a979067
     19}}}
     20
     21''-->Exercice: Copier les deux fichiers nomAnimal et typeAnimal sous votre répertoire du LFC''
     22
     23 * __Match-making__ [[BR]]Le seul SE qui possède les données que je souhaite est le SE du LPSC. Le match making regarde donc quel est le CE qui peut accéder à ce SE.
     24 {{{
     25[lambert@lpsc-ui edg4]$ edg-job-list-match job.jdl
     26
     27Selected Virtual Organisation name (from JDL): atlas
     28Connecting to host node04.datagrid.cea.fr, port 7772
     29
     30***************************************************************************
     31                         COMPUTING ELEMENT IDs LIST
     32 The following CE(s) matching your job requirements have been found:
     33
     34                   *CEId*                             
     35 lpsc-ce.in2p3.fr:2119/jobmanager-pbs-atlas             
     36***************************************************************************
     37}}}
     38
     39''-->Exercice: Ouvrez et modifiez les fichier job.jdl et job.sh pour les adapter à votre cas. Soumettez le job et récupérez le résultat.'' [[BR]]
     40
     41 * __Soumission du job et résultat__
     42 {{{
     43[lambert@lpsc-ui edg4]$ edg-job-submit job.jdl
     44
     45Selected Virtual Organisation name (from JDL): atlas
     46Connecting to host node04.datagrid.cea.fr, port 7772
     47Logging to host node04.datagrid.cea.fr, port 9002
     48
     49
     50*********************************************************************************************
     51                               JOB SUBMIT OUTCOME
     52 The job has been successfully submitted to the Network Server.
     53 Use edg-job-status command to check job current status. Your job identifier (edg_jobId) is:
     54
     55 - https://node04.datagrid.cea.fr:9000/bOuwqwXyLxy4uaRYklMVig
     56
     57
     58*********************************************************************************************
     59
     60[lambert@lpsc-ui edg4]$ edg-job-status  https://node04.datagrid.cea.fr:9000/bOuwqwXyLxy4uaRYklMVig
     61
     62
     63*************************************************************
     64BOOKKEEPING INFORMATION:
     65
     66Status info for the Job : https://node04.datagrid.cea.fr:9000/bOuwqwXyLxy4uaRYklMVig
     67Current Status:     Done (Success)
     68Exit code:          0
     69Status Reason:      Job terminated successfully
     70Destination:        lpsc-ce.in2p3.fr:2119/jobmanager-pbs-atlas
     71reached on:         Thu Jun  5 13:11:02 2008
     72*************************************************************
     73
     74[lambert@lpsc-ui edg4]$ edg-job-get-output  https://node04.datagrid.cea.fr:9000/bOuwqwXyLxy4uaRYklMVig
     75
     76Retrieving files from host: node04.datagrid.cea.fr ( for https://node04.datagrid.cea.fr:9000/bOuwqwXyLxy4uaRYklMVig )
     77
     78*********************************************************************************
     79                        JOB GET OUTPUT OUTCOME
     80
     81 Output sandbox files for the job:
     82 - https://node04.datagrid.cea.fr:9000/bOuwqwXyLxy4uaRYklMVig
     83 have been successfully retrieved and stored in the directory:
     84 /atlas/lambert/JobOutput/lambert_bOuwqwXyLxy4uaRYklMVig
     85
     86*********************************************************************************
     87
     88[lambert@lpsc-ui edg4]$ cat /atlas/lambert/JobOutput/lambert_bOuwqwXyLxy4uaRYklMVig/std.out
     89Comment t'appelles tu perroquet ?
     90Je m'appelle coco !
     91}}}
     92''-->Exercice: Dans le script job.sh, les LFN utilisés sont ils relatifs ou absolus ?''
     93
     94[wiki:tutoedg up] ; [wiki:edg3 previous] ; [wiki:edg5 next]