Changes between Initial Version and Version 1 of edg1


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

--

Legend:

Unmodified
Added
Removed
Modified
  • edg1

    v1 v1  
     1== Analyse d'un job qui-suis je ? ==
     2
     3Ce tutoriel décrit comment lancer un job trés simple, qui ne prends aucun argument en entrée et qui écrit son résultat dans un fichier texte.
     4
     5Pour lancer un job, vous avez besoin de deux fichiers
     6 * '''Le fichier JDL''' (Job Description Langage) [[BR]] 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 instruction du fichier JDL.
     7 * '''L'executable''' [[BR]] Le fichier job.sh est le script qui va être exécuter sur la machine distante (le WN)
     8
     9''-->Exercice : Récupérez les deux fichiers en attachements en bas de page. Copiez les dans un repertoire de votre compte local sur l'UI. Lisez le fichier JDL'' [[BR]]
     10''-->Exercice :En suivant l'exemple ci-dessous, soumettez votre job et de récuperez sa sortie.''
     11
     12
     13 * __Soumission du job__ [[BR]] '''edg-job-submit''' <jdlFile> est la commande de soumission de job
     14 {{{
     15[lambert@lpsc-ui edg1]$ edg-job-submit job.jdl
     16
     17Selected Virtual Organisation name (from JDL): atlas
     18Connecting to host node04.datagrid.cea.fr, port 7772
     19Logging to host node04.datagrid.cea.fr, port 9002
     20
     21
     22*********************************************************************************************
     23                               JOB SUBMIT OUTCOME
     24 The job has been successfully submitted to the Network Server.
     25 Use edg-job-status command to check job current status. Your job identifier (edg_jobId) is:
     26
     27 - https://node04.datagrid.cea.fr:9000/twDfEt2nRSeUgR7-LSR_8A
     28
     29
     30*********************************************************************************************
     31}}}
     32 Le job est soumis sur grille en utilisant le RB (ressource broker) ''!node04.datagrid.cea.fr'' [[BR]] Le job peut être retrouvé sur la grille grâce à son identifiant : !https://node04.datagrid.cea.fr:9000/twDfEt2nRSeUgR7-LSR_8A
     33
     34 * __Statut du job__ [[BR]]'''edg-job-status''' <jobId> permet de retrouver le statut du job tout au long de son cycle de vie.
     35 {{{
     36[lambert@lpsc-ui edg1]$ edg-job-status https://node04.datagrid.cea.fr:9000/twDfEt2nRSeUgR7-LSR_8A
     37
     38
     39*************************************************************
     40BOOKKEEPING INFORMATION:
     41
     42Status info for the Job : https://node04.datagrid.cea.fr:9000/twDfEt2nRSeUgR7-LSR_8A
     43Current Status:     Done (Success)
     44Exit code:          0
     45Status Reason:      Job terminated successfully
     46Destination:        lcg2ce.ific.uv.es:2119/jobmanager-pbs-short
     47reached on:         Thu Jun  5 12:08:43 2008
     48*************************************************************
     49
     50}}}
     51 Le job s'est terminé correctement. Il a été éxécuté sur le CE ''lcg2ce.ific.uv.es:2119/jobmanager-pbs-short''
     52
     53 * __Récupération de la sortie du job__ [[BR]] '''edg-job-get-output''' <jobId> récupère les fichiers créés par le job et les stocke dans un répertoire sur votre UI.
     54 {{{
     55[lambert@lpsc-ui edg1]$ edg-job-get-output https://node04.datagrid.cea.fr:9000/twDfEt2nRSeUgR7-LSR_8A
     56
     57Retrieving files from host: node04.datagrid.cea.fr ( for https://node04.datagrid.cea.fr:9000/twDfEt2nRSeUgR7-LSR_8A )
     58
     59*********************************************************************************
     60                        JOB GET OUTPUT OUTCOME
     61
     62 Output sandbox files for the job:
     63 - https://node04.datagrid.cea.fr:9000/twDfEt2nRSeUgR7-LSR_8A
     64 have been successfully retrieved and stored in the directory:
     65 /atlas/lambert/JobOutput/lambert_twDfEt2nRSeUgR7-LSR_8A
     66
     67*********************************************************************************
     68}}}
     69 Les fichiers sont récupérés dans ''/atlas/lambert/JobOutput/lambert_twDfEt2nRSeUgR7-LSR_8A''
     70
     71 * __Analyse de la sortie__
     72 {{{
     73[lambert@lpsc-ui edg1]$ cat /atlas/lambert/JobOutput/lambert_twDfEt2nRSeUgR7-LSR_8A/std.out
     74Qui suis-je?
     75atl083
     76Quel jour sommes nous ?
     77Thu Jun  5 14:04:20 CEST 2008
     78}}}
     79 Ce job montre que vous avez été 'mappé' sur l'utilisateur local atl083 de la machine distante.
     80
     81[wiki:tutoedg up] ; [wiki:edg2 next]