Changes between Initial Version and Version 1 of collectionJDLs


Ignore:
Timestamp:
12/08/2008 14:46:57 (16 years ago)
Author:
/O=GRID-FR/C=FR/O=CNRS/OU=LPSC/CN=Fabian Lambert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • collectionJDLs

    v1 v1  
     1 == Soumission d'une collection de jobs ==
     2
     3Ce tutoriel décrit comment soumettre une collection de jobs en référençant plusieurs fichiers JDL à partir d'un fichier de description JDL unique.
     4
     5Pour lancer la collection de jobs, vous avez besoin de plusieurs fichiers
     6
     7    * Les fichier JDL (Job Description Langage)
     8      Le fichier job.jdl décrit la collection de jobs, les fichiers job1.jdl,job2.jdl et job3.jdl décrivent chacun un job.
     9    * L'executable
     10      Le fichier job.sh est le script qui va être exécuter sur la machine distante (le WN). Dans notre cas il est commun aux trois jobs de la collection.
     11 
     12  * __Soumission de la collection __ [[BR]][[BR]] La collection est soumise de la même manière qu'un job normal avec '''glite-wms-job-submit -a <JDL file>'''.
     13 {{{
     14[lambert@lpsc-ui gliteWMS-Collection3]$ glite-wms-job-submit -a job.jdl
     15
     16Connecting to the service https://wms105.cern.ch:7443/glite_wms_wmproxy_server
     17
     18
     19====================== glite-wms-job-submit Success ======================
     20
     21The job has been successfully submitted to the WMProxy
     22Your job identifier is:
     23
     24https://lb106.cern.ch:9000/SBw8z7J3XuphHpxayuhaOQ
     25
     26==========================================================================
     27}}}
     28
     29  * __Statut des jobs de la collection __ [[BR]][[BR]] Comme pour une soumission de job simple, il faut utiliser '''glite-wms-job-status <collectionId>'''. Le statut de chaque job de la collection est affiché ainsi que son jobId.
     30  {{{
     31[lambert@lpsc-ui gliteWMS-Collection3]$ glite-wms-job-status https://lb106.cern.ch:9000/SBw8z7J3XuphHpxayuhaOQ
     32
     33
     34*************************************************************
     35BOOKKEEPING INFORMATION:
     36
     37Status info for the Job : https://lb106.cern.ch:9000/SBw8z7J3XuphHpxayuhaOQ
     38Current Status:     Done (Success)
     39Exit code:          0
     40Submitted:          Tue Aug 12 14:13:49 2008 CEST
     41*************************************************************
     42
     43- Nodes information for:
     44    Status info for the Job : https://lb106.cern.ch:9000/4cVkeLv18EG3S0pQY1auew
     45    Current Status:     Done (Success)
     46    Logged Reason(s):
     47        -
     48        - Job terminated successfully
     49    Exit code:          0
     50    Status Reason:      Job terminated successfully
     51    Destination:        ce0003.m45.ihep.su:2119/jobmanager-lcgpbs-atlas
     52    Submitted:          Tue Aug 12 14:13:49 2008 CEST
     53*************************************************************
     54   
     55    Status info for the Job : https://lb106.cern.ch:9000/T679nHHe1anGV3F9lxsutA
     56    Current Status:     Done (Success)
     57    Exit code:          0
     58    Status Reason:      Job terminated successfully
     59    Destination:        ce002.ipp.acad.bg:2119/jobmanager-lcgpbs-atlas
     60    Submitted:          Tue Aug 12 14:13:49 2008 CEST
     61*************************************************************
     62   
     63    Status info for the Job : https://lb106.cern.ch:9000/rh9u9rMbCDlkROPGX8tR6g
     64    Current Status:     Done (Success)
     65    Logged Reason(s):
     66        -
     67        - Job terminated successfully
     68    Exit code:          0
     69    Status Reason:      Job terminated successfully
     70    Destination:        ce06-lcg.cr.cnaf.infn.it:2119/jobmanager-lcglsf-atlas
     71    Submitted:          Tue Aug 12 14:13:49 2008 CEST
     72*************************************************************
     73}}}
     74
     75
     76  * __Récupération des outputs __ [[BR]][[BR]] Comme pour un job simple, il faut utiliser '''glite-wms-job-get-output <collectionId>'''. Les output de chaque jobs sont stockés par défaut dans un répertoire et les erreurs eventuelles sont signalées.
     77  {{{
     78[lambert@lpsc-ui gliteWMS-Collection3]$ glite-wms-job-output  https://lb106.cern.ch:9000/SBw8z7J3XuphHpxayuhaOQ
     79
     80Connecting to the service https://wms105.cern.ch:7443/glite_wms_wmproxy_server
     81
     82
     83================================================================================
     84
     85                        JOB GET OUTPUT OUTCOME
     86
     87Output sandbox files for the DAG/Collection :
     88https://lb106.cern.ch:9000/SBw8z7J3XuphHpxayuhaOQ
     89have been successfully retrieved and stored in the directory:
     90/tmp/lambert_SBw8z7J3XuphHpxayuhaOQ
     91
     92================================================================================
     93
     94
     95[lambert@lpsc-ui gliteWMS-Collection3]$ ls /tmp/lambert_SBw8z7J3XuphHpxayuhaOQ
     96chien  girafe  ids_nodes.map  souris
     97}}}
     98''-->Exercice: étudiez le fichier JDL. Par quoi est déterminer le répertoire où sont stockés les résultats de vos jobs ?''
     99
     100  * __Résultat des jobs __ [[BR]][[BR]] Vous devez trouver un résultat similaire à celui ci :
     101  {{{
     102[lambert@lpsc-ui gliteWMS-Collection2]$ cat /tmp/lambert_SBw8z7J3XuphHpxayuhaOQ/chien/std1.out
     103Comment t'appelles tu chien ?
     104Je m'appelle paf !
     105[lambert@lpsc-ui gliteWMS-Collection2]$ cat /tmp/lambert_SBw8z7J3XuphHpxayuhaOQ/girafe/std2.out
     106Comment t'appelles tu girafe ?
     107Je m'appelle flipflap !
     108[lambert@lpsc-ui gliteWMS-Collection2]$ cat /tmp/lambert_SBw8z7J3XuphHpxayuhaOQ/souris/std3.out
     109Comment t'appelles tu souris ?
     110Je m'appelle sproutch !
     111}}}
     112
     113
     114[wiki:tutoCollections up]