= Analyse d'un job avec !InputData = [[PageOutline]] Ce 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. Pour lancer un job, vous avez besoin de quatre 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 nouvelle instruction du fichier JDL. * L'executable Le fichier job.sh est le script qui va être exécuter sur la machine distante (le WN) * Les données typeAnimal et nomAnimal == 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. {{{ [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 guid:48e95bbc-1c55-4bc2-aaac-575dcf0b9552 [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 guid:0111c73e-edf8-4dfa-a4d1-298f5a979067 }}} ''-->Exercice: Copier les deux fichiers nomAnimal et typeAnimal sous votre répertoire du LFC'' == 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. {{{ [lambert@lpsc-ui edg4]$ edg-job-list-match job.jdl Selected Virtual Organisation name (from JDL): atlas Connecting to host node04.datagrid.cea.fr, port 7772 *************************************************************************** COMPUTING ELEMENT IDs LIST The following CE(s) matching your job requirements have been found: *CEId* lpsc-ce.in2p3.fr:2119/jobmanager-pbs-atlas *************************************************************************** }}} ''-->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]] == Soumission du job et résultat == {{{ [lambert@lpsc-ui edg4]$ 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/bOuwqwXyLxy4uaRYklMVig ********************************************************************************************* [lambert@lpsc-ui edg4]$ edg-job-status https://node04.datagrid.cea.fr:9000/bOuwqwXyLxy4uaRYklMVig ************************************************************* BOOKKEEPING INFORMATION: Status info for the Job : https://node04.datagrid.cea.fr:9000/bOuwqwXyLxy4uaRYklMVig Current Status: Done (Success) Exit code: 0 Status Reason: Job terminated successfully Destination: lpsc-ce.in2p3.fr:2119/jobmanager-pbs-atlas reached on: Thu Jun 5 13:11:02 2008 ************************************************************* [lambert@lpsc-ui edg4]$ edg-job-get-output https://node04.datagrid.cea.fr:9000/bOuwqwXyLxy4uaRYklMVig Retrieving files from host: node04.datagrid.cea.fr ( for https://node04.datagrid.cea.fr:9000/bOuwqwXyLxy4uaRYklMVig ) ********************************************************************************* JOB GET OUTPUT OUTCOME Output sandbox files for the job: - https://node04.datagrid.cea.fr:9000/bOuwqwXyLxy4uaRYklMVig have been successfully retrieved and stored in the directory: /atlas/lambert/JobOutput/lambert_bOuwqwXyLxy4uaRYklMVig ********************************************************************************* [lambert@lpsc-ui edg4]$ cat /atlas/lambert/JobOutput/lambert_bOuwqwXyLxy4uaRYklMVig/std.out Comment t'appelles tu perroquet ? Je m'appelle coco ! }}} ''-->Exercice: Dans le script job.sh, les LFN utilisés sont ils relatifs ou absolus ?'' [wiki:tutoedg up] ; [wiki:edg3 previous] ; [wiki:edg5 next]