eighth eela tutorial for users, la plata, 11 - 12 december 2006 e-infrastructure shared between...

14
Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between Europe and Latin America WMS Hands-on Matias Zabaljauregui LINTI - UNLP Eighth EELA Tutorial for users La Plata, 12.12.2006

Upload: tere-san-martin

Post on 22-Apr-2015

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between

Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006

E-infrastructure shared between

Europe and Latin AmericaE-infrastructure shared between Europe and Latin America

WMS Hands-on

Matias Zabaljauregui

LINTI - UNLP

Eighth EELA Tutorial for users

La Plata, 12.12.2006

Page 2: Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between

2Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006

Comandos para manejo de trabajos

glite-job-submit: permite el envio (submit) de trabajos al Grid

glite-job-status: devuelve el estado actual de un trabajo

glite-job-cancel: permite cancelar un trabajo

glite-job-output: Obtiene la salida de un trabajo

glite-job-list-match: devuelve todos los recursos que satisfacen los requerimientos de un trabajo

Page 3: Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between

3Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006

$ glite-job-submit [options] <jdl_file>

--vo <vo name> permite trabajar con una VO diferente a la definida en el UI

--output, -o <output file> guarda el jobId en un archivo

--resource, -r <resource value> especifica el recurso a donde enviar el trabajo para su ejecución

--nomsgi no desplegara mensajes de error en el stdout

glite-job-submit (1)

Page 4: Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between

4Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006

glite-job-submit job1.jdl

======================glite-job-submit Success =======================

The job has been successfully submitted to the Network Server.Use glite-job-status command to check job current status. Your job identifier (edg_jobId) is:- https://lxshare0234.cern.ch:9000/rIBubkFFKhnSQ6CjiLUY8Q=================================================

==================

glite-job-submit –o jobID job1.jdl

glite-job-submit (2)

Page 5: Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between

5Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006

glite-job-status https://lxshare0234.cern.ch:9000/X-ehTxfdlXxSoIdVLS0L0w

*************************************************************BOOKKEEPING INFORMATION:Printing status info for the Job:https://lxshare0234.cern.ch:9000/X-ehTxfdlXxSoIdVLS0L0wCurrent Status: ScheduledStatus Reason: unavailableDestination: lxshare0277.cern.ch:2119/jobmanager-pbs-infinitereached on: Fri Aug 1 12:21:35 2003*************************************************************

glite-job-status –i jobID

glite-job-status

Page 6: Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between

6Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006

La opción -i <file path> puede ser usada para especificar un archivo que contiene una lista de jobID (guardados previamente con la opción –o del comando glite-job-submit).

glite-job-status -i jobs.list---------------------------------------------------------------------------------------------------1 : https://lxshare0234.cern.ch:9000/UPBqN2s2ycxt1TnuU3kzEw2 : https://lxshare0234.cern.ch:9000/8S6IwPW33AhyxhkSv8Nt9A3 : https://lxshare0234.cern.ch:9000/E9R0Yl4J7qgsq7FYTnhmsA4 : https://lxshare0234.cern.ch:9000/Tt80pBn17AFPJyUSN9Qb7Qa : allq : quit---------------------------------------------------------------------------------------------------Choose one or more edg_jobId(s) in the list - [1-4]all:

Si la opción --all es usada, entonces el estado de todos los trabajos enviados por el usuario serán mostrados.

glite-job-status (2)

Page 7: Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between

7Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006

glite-job-status (3)

La opción --status <state> (-s) hace que el comando devuelva solo los trabajos que están en el estado especificado, y la opción --exclude <state> (-e) hace que devuelva los trabajos que no están en el estado especificado.

Ejemplo: Todos los trabajos que están en el estado DONE o RUNNING.

glite-job-status --all -s Done -s Running

Page 8: Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between

8Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006

Es posible ver que CEs son elegibles para ejecutar un trabajo especifico dado por un archivo JDL usando el comando

glite-job-list-match job1.jdlConnecting to host lxshare0380.cern.ch, port 7772Selected Virtual Organisation name (from UI conf file): dteam**********************************************************************

***COMPUTING ELEMENT IDs LISTThe following CE(s) matching your job requirements have been

found:adc0015.cern.ch:2119/jobmanager-lcgpbs-infiniteadc0015.cern.ch:2119/jobmanager-lcgpbs-longadc0015.cern.ch:2119/jobmanager-lcgpbs-short**********************************************************************

***

glite-job-list-match

Page 9: Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between

9Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006

Un trabajo puede ser enviado a un recurso especifico usando el comando glite-job-submit con la opción -r

glite-job-submit –r adc0015.cern.ch:2119/jobmanager-lcgpbs-infinite –o jobID job1.jdl

===============glite-job-submit Success ================

The job has been successfully submitted to the Network Server.

Use glite-job-status command to check job current status. Your job identifier (edg_jobId) is:-

https://lxshare0234.cern.ch:9000/rIBubkFFKhnSQ6CjiLUY8Q

====================================================

glite-job-submit (3)

Page 10: Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between

10Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006

Un trabajo puede ser cancelado antes de finalizar usando el comando glite-job-cancel

glite-job-cancel https://lxshare0234.cern.ch:9000/dAE162is6EStca0VqhVkog

Are you sure you want to remove specified job(s)? [y/n]n :y=================== glite-job-cancel

Success===================The cancellation request has been successfully submitted for

the following job(s)- https://lxshare0234.cern.ch:9000/dAE162is6EStca0VqhVkog===========================================

================

glite-job-cancel –i jobID

glite-job-cancel

Page 11: Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between

11Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006

Después que un trabajo ha finalizado (estado DONE), su salida puede ser copiada en el UI

glite-job-output https://lxshare0234.cern.ch:9000/snPegp1YMJcnS22yF5pFlg

Retrieving files from host lxshare0234.cern.ch*****************************************************************JOB GET OUTPUT OUTCOMEOutput sandbox files for the job:- https://lxshare0234.cern.ch:9000/snPegp1YMJcnS22yF5pFlghave been successfully retrieved and stored in the directory:/tmp/jobOutput/snPegp1YMJcnS22yF5pFlg*****************************************************************

Por defecto, la salida es almacenada en /tmp, pero es posible especificar en que directorio guardarla usando la opción - -dir <path name>

glite-job-output

Page 12: Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between

12Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006

Ejercicio 1

Para el trabajo “hostname”:

– Verifique el contenido del archivo jdl.– Envíe el trabajo a ejecutar.– Verifique el estado del trabajo.– Cuando el estado del trabajo sea DONE, entonces obtenga

y verifique la salida.– Obtenga la secuencia de eventos logueados.

Page 13: Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between

13Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006

Ejercicio 2

Para el trabajo “test”:

– Lea el script test.sh y el contenido de los archivos fileA y fileB.

– Revise el archivo jdl , y asegúrese de comprender todas las expresiones.

– Busque recursos elegibles para ejecutar el trabajo elegido.

– Envie a ejecutar el trabajo en uno de los recursos listado en el punto anterior.

– Verifique el estado del trabajo

– Cuando corresponda, recupere y verifique la salida del trabajo.

Page 14: Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006 E-infrastructure shared between Europe and Latin America E-infrastructure shared between

14Eighth EELA Tutorial for Users, La Plata, 11 - 12 December 2006