Soumission d'une collection de jobs
Ce tutoriel décrit comment soumettre une collection de jobs décrit dans un fichier jdl.
Pour lancer la collection de jobs, vous avez besoin de plusieurs fichiers
- Les fichier JDL (Job Description Langage) Le fichier job.jdl décrit la collection de jobs. Ce fichier est à utilisé comme un fichier de job normal.
- L'executable 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.
Soumission de la collection == La collection est soumise de la même manière qu'un job normal avec glite-wms-job-submit -a <JDL file>.
[lambert@lpsc-ui gliteWMS-Collection2]$ glite-wms-job-submit -a job.jdl Connecting to the service https://wms105.cern.ch:7443/glite_wms_wmproxy_server ====================== glite-wms-job-submit Success ====================== The job has been successfully submitted to the WMProxy Your job identifier is: https://lb106.cern.ch:9000/0Ju4Izm48pvMNLdGcPMvyg ==========================================================================
-->Exercice: étudiez le fichier JDL. Où sont décrit les trois jobs ? De quelle propriété hérite le troisième job ? Quel doit être son résultat ?
Statut des jobs de la collection == 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.
[lambert@lpsc-ui gliteWMS-Collection2]$ glite-wms-job-status https://lb106.cern.ch:9000/0Ju4Izm48pvMNLdGcPMvyg ************************************************************* BOOKKEEPING INFORMATION: Status info for the Job : https://lb106.cern.ch:9000/0Ju4Izm48pvMNLdGcPMvyg Current Status: Done (Success) Exit code: 0 Submitted: Tue Aug 12 12:22:44 2008 CEST ************************************************************* - Nodes information for: Status info for the Job : https://lb106.cern.ch:9000/8I03Pu5OV2EGBNU6aFrZZA Current Status: Done (Success) Exit code: 0 Status Reason: Job terminated successfully Destination: atlasce.lnf.infn.it:2119/jobmanager-lcgpbs-atlas Submitted: Tue Aug 12 12:22:44 2008 CEST ************************************************************* Status info for the Job : https://lb106.cern.ch:9000/8Ni68C45ohgYF7w09qU0Dg Current Status: Done (Success) Logged Reason(s): - - Job terminated successfully Exit code: 0 Status Reason: Job terminated successfully Destination: ce001.grid.uni-sofia.bg:2119/jobmanager-lcgpbs-atlas Submitted: Tue Aug 12 12:22:44 2008 CEST ************************************************************* Status info for the Job : https://lb106.cern.ch:9000/y9VTNq0FgkfpWGgegdAvAw Current Status: Done (Success) Exit code: 0 Status Reason: Job terminated successfully Destination: ce107.cern.ch:2119/jobmanager-lcglsf-grid_atlas Submitted: Tue Aug 12 12:22:44 2008 CEST *************************************************************
Récupération des outputs == 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.
[lambert@lpsc-ui gliteWMS-Collection2]$ glite-wms-job-output https://lb106.cern.ch:9000/0Ju4Izm48pvMNLdGcPMvyg Connecting to the service https://wms105.cern.ch:7443/glite_wms_wmproxy_server ================================================================================ JOB GET OUTPUT OUTCOME Output sandbox files for the DAG/Collection : https://lb106.cern.ch:9000/0Ju4Izm48pvMNLdGcPMvyg have been successfully retrieved and stored in the directory: /tmp/lambert_0Ju4Izm48pvMNLdGcPMvyg ================================================================================ [lambert@lpsc-ui gliteWMS-Collection2]$ ls /tmp/lambert_0Ju4Izm48pvMNLdGcPMvyg chien girafe ids_nodes.map souris
-->Exercice: étudiez le fichier JDL. Par quoi est déterminer le répertoire où sont stockés les résultats de vos jobs ?
Résultat des jobs == Vous devez trouver un résultat similaire à celui ci :
[lambert@lpsc-ui gliteWMS-Collection2]$ cat /tmp/lambert_0Ju4Izm48pvMNLdGcPMvyg/chien/std1.out Comment t'appelles tu chien ? Je m'appelle paf ! [lambert@lpsc-ui gliteWMS-Collection2]$ cat /tmp/lambert_0Ju4Izm48pvMNLdGcPMvyg/girafe/std2.out Comment t'appelles tu girafe ? Je m'appelle flipflap ! [lambert@lpsc-ui gliteWMS-Collection2]$ cat /tmp/lambert_0Ju4Izm48pvMNLdGcPMvyg/souris/std3.out Comment t'appelles tu souris ? Je m'appelle sproutch !
Last modified
16 years ago
Last modified on 08/10/2008 13:47:34
Attachments (2)
- job.jdl (885 bytes ) - added by 16 years ago.
- job.sh (92 bytes ) - added by 16 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.