wiki:edg1

Analyse d'un job qui-suis je ?

Ce 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.

Pour lancer un job, vous avez besoin de deux fichiers

  • Le fichier JDL (Job Description Langage)
    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.
  • L'executable
    Le fichier job.sh est le script qui va être exécuter sur la machine distante (le WN)

-->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
-->Exercice :En suivant l'exemple ci-dessous, soumettez votre job et de récuperez sa sortie.

Soumission du job == edg-job-submit <jdlFile> est la commande de soumission de job

[lambert@lpsc-ui edg1]$ edg-job-submit job.jdl

Selected Virtual Organisation name (from JDL): atlas
Connecting to host node04.datagrid.cea.fr, port 7772
Logging to host node04.datagrid.cea.fr, port 9002


*********************************************************************************************
                               JOB SUBMIT OUTCOME
 The job has been successfully submitted to the Network Server.
 Use edg-job-status command to check job current status. Your job identifier (edg_jobId) is:

 - https://node04.datagrid.cea.fr:9000/twDfEt2nRSeUgR7-LSR_8A


*********************************************************************************************

Le job est soumis sur grille en utilisant le RB (ressource broker) node04.datagrid.cea.fr
Le job peut être retrouvé sur la grille grâce à son identifiant : https://node04.datagrid.cea.fr:9000/twDfEt2nRSeUgR7-LSR_8A

Statut du job == edg-job-status <jobId> permet de retrouver le statut du job tout au long de son cycle de vie.

[lambert@lpsc-ui edg1]$ edg-job-status https://node04.datagrid.cea.fr:9000/twDfEt2nRSeUgR7-LSR_8A


*************************************************************
BOOKKEEPING INFORMATION:

Status info for the Job : https://node04.datagrid.cea.fr:9000/twDfEt2nRSeUgR7-LSR_8A
Current Status:     Done (Success)
Exit code:          0
Status Reason:      Job terminated successfully
Destination:        lcg2ce.ific.uv.es:2119/jobmanager-pbs-short
reached on:         Thu Jun  5 12:08:43 2008
*************************************************************

Le job s'est terminé correctement. Il a été éxécuté sur le CE lcg2ce.ific.uv.es:2119/jobmanager-pbs-short

Récupération de la sortie du job == 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.

[lambert@lpsc-ui edg1]$ edg-job-get-output https://node04.datagrid.cea.fr:9000/twDfEt2nRSeUgR7-LSR_8A

Retrieving files from host: node04.datagrid.cea.fr ( for https://node04.datagrid.cea.fr:9000/twDfEt2nRSeUgR7-LSR_8A )

*********************************************************************************
                        JOB GET OUTPUT OUTCOME

 Output sandbox files for the job:
 - https://node04.datagrid.cea.fr:9000/twDfEt2nRSeUgR7-LSR_8A
 have been successfully retrieved and stored in the directory:
 /atlas/lambert/JobOutput/lambert_twDfEt2nRSeUgR7-LSR_8A

*********************************************************************************

Les fichiers sont récupérés dans /atlas/lambert/JobOutput/lambert_twDfEt2nRSeUgR7-LSR_8A

Analyse de la sortie

[lambert@lpsc-ui edg1]$ cat /atlas/lambert/JobOutput/lambert_twDfEt2nRSeUgR7-LSR_8A/std.out 
Qui suis-je?
atl083
Quel jour sommes nous ?
Thu Jun  5 14:04:20 CEST 2008

Ce job montre que vous avez été 'mappé' sur l'utilisateur local atl083 de la machine distante.

up ; next

Last modified 16 years ago Last modified on 08/10/2008 13:27:33

Attachments (2)

  • job.sh (96 bytes ) - added by /O=GRID-FR/C=FR/O=CNRS/OU=LPSC/CN=Fabian Lambert 16 years ago. edg_job_1
  • job.jdl (702 bytes ) - added by /O=GRID-FR/C=FR/O=CNRS/OU=LPSC/CN=Fabian Lambert 16 years ago. edg_jdl_1

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.