HandsOnWMS nov

Information about HandsOnWMS nov

Published on October 16, 2007

Author: Flemel

Source: authorstream.com

Content

Practicals on gLite Workload Management Systems:  Practicals on gLite Workload Management Systems SHI Jingyan Computing Center, IHEP EUChinaGrid 3rd Tutorial Beijing, 25.11.2006 Workload Management System:  In the glite middleware a user can submit and cancel jobs, query their status, and retrieve their output. These tasks go under the name of Workload Management. There are two different User Interfaces to accomplish these tasks. One is the Command Line Interface and the other is the Graphical User Interface. Workload Management System Command Line Interface:  Command Line Interface Job Submission Perform the job submission to the Grid. $ edg-job-submit [options] <jdl_file> where <jdl file> is a file containing the job description, usually with extension .jdl. --vo <vo name> : perform submission with a different VO than the UI default one. --output, -o <output file> save jobId on a file. --resource, -r <resource value> specify the resource for execution. --nomsgi neither message nor errors on the stdout will be displayed. Slide4:  If the request has been correctly submitted this is the tipical output that you can get: edg-job-submit test.jdl ***************************************************************************** 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://gilda05.ihep.ac.cn:9000/IlaDMNZXlB1IOCIzHH4Qkw ***************************************************************************** In case of failure, an error message will be displayed instead, and an exit status different form zero will be retured. Slide5:  If the command returns the following error message: **** Error: API_NATIVE_ERROR **** Error while calling the "NSClient::multi" native api AuthenticationException: Failed to establish security context... **** Error: UI_NO_NS_CONTACT **** Unable to contact any Network Server it means that there are authentication problems between the UI and the Network Server (check your proxy or contact the site administrator). Slide6:  It is possible to see which CEs are eligible to run a job specified by a given JDL file using the command edg-job-list-match test.jdl Selected Virtual Organisation name (from --vo option): gilda Connecting to host gilda05.ihep.ac.cn, port 7772 *************************************************************************** COMPUTING ELEMENT IDs LIST The following CE(s) matching your job requirements have been found: *CEId* dgt01.ui.savba.sk:2119/jobmanager-lcgpbs-infinite dgt01.ui.savba.sk:2119/jobmanager-lcgpbs-long dgt01.ui.savba.sk:2119/jobmanager-lcgpbs-short gilda01.ihep.ac.cn:2119/jobmanager-lcgpbs-infinite gilda01.ihep.ac.cn:2119/jobmanager-lcgpbs-long ********************************************************************** Slide7:  After a job is submitted, it is possible to see its status using the glite-job-status command. edg-job-status https://gilda05.ihep.ac.cn:9000/WZTHO5VI5FRyF81a8RcELg ************************************************************* BOOKKEEPING INFORMATION: Status info for the Job : https://gilda05.ihep.ac.cn:9000/WZTHO5VI5FRyF81a8RcELg Current Status: Ready Status Reason: unavailable Destination: gildace.oact.inaf.it:2119/jobmanager-lcgpbs-long Submitted: Wed Jun 7 11:18:28 2006 CST ************************************************************* Slide8:  The option -i <file path> can be used to specify a file with a list of job identifiers (saved previously with the -o option of glite-job-submit). edg-job-status -i jobs.list ------------------------------------------------------------------ 1 : https://gilda05.ihep.ac.cn:9000/9Zi9d4Cc0P8zqFKm-hxuyw 2 : https://gilda05.ihep.ac.cn:9000/xliVmKVJxoYL_wMuslGDnA a : all q : quit ------------------------------------------------------------------ Choose one or more jobId(s) in the list - [1-2]all: If the - -all option is used instead, the status of all the jobs owned by the user submitting the command is retrieved. Slide9:  The --status <state> (-s) option makes the command retrieve only the jobs that are in the specified state, and the --exclude <state> (-e) option makes it retrieve jobs that are not in the specified state. This two lasts options are mutually exclusive, although they can be used with --from and --to. Example: All jobs of the user that are in the state DONE or RUNNING are retrieved. edg-job-status --all -s Done -s Running Slide10:  A job can be canceled before it ends using the command glite-job-cancel. edg-job-cancel https://gilda05.ihep.ac.cn:9000/WZTHO5VI5FRyF81a8RcELg 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://gilda05.ihep.ac.cn:9000/WZTHO5VI5FRyF81a8RcELg ==================================================================== Slide11:  After the job has finished (it reaches the DONE status), its output can be copied to the UI edg-job-output https://gilda05.ihep.ac.cn:9000/DfdDGhhNmw6zObV0CAZLWQ Retrieving files from host: gilda05.ihep.ac.cn ( for https://gilda05.ihep.ac.cn:9000/DfdDGhhNmw6zObV0CAZLWQ ) ******************************************************************************** JOB GET OUTPUT OUTCOME Output sandbox files for the job: - https://gilda05.ihep.ac.cn:9000/DfdDGhhNmw6zObV0CAZLWQ have been successfully retrieved and stored in the directory: /tmp/glite/glite-ui/shijy_DfdDGhhNmw6zObV0CAZLWQ *********************************************************************************By default, the output is stored under /tmp, but it is possible to specify in which directory to save the output using the - -dir <path name> option. Slide12:  Exercise 1 Run an ls command on a resource:  Run an ls command on a resource Create or modify ls.jdl and ls.sh as follow: [ Executable = "ls.sh"; Arguments = "-al"; StdError = "stderr.log"; StdOutput = "stdout.log"; InputSandbox = "ls.sh"; OutputSandbox = {"stderr.log", "stdout.log"}; ] Create and make executable with chmod +x ls.sh script #!/bin/sh /bin/ls $1 Slide14:  Exercise 2 Slide15:  Modify c_sample.c file as follow: #include <stdio.h> int main(int argc, char **argv) { printf("\n\n\n"); printf("Hello !\n"); printf("Welcome to the GRID tutorial for users and system administrators – Beijing 15-16 Junel - 2006 \n\n\n"); exit(0); } This exercise allows user to submit a C program. Slide16:  Compile your script with: gcc –o c_sample c_sample.c Submit the c_sample.jdl job to the grid [ Executable = “/bin/sh”; Arguments = “start_c_sample.sh”; StdOutput = “std.out"; StdError = “std.err"; InputSandbox = {"c_sample“,”start_c_sample.sh”}; OutputSandbox = {“std.err",“std.out"}; ] Slide17:  Create the start_c_sample.sh script as follow: #!/bin/sh chmod 777 c_sample ./c_sample Inspect the status and retrieve its output when the job is finished. Slide18:  Exercise 3 Slide19:  Modify c_sample.c file as follow: #include <stdio.h> int main(int argc, char **argv) { char *name = argv[1]; printf("\n\n\n"); printf("Hello %s!\n“,name); printf("Welcome to the GRID tutorial for users and system administrators – Beijing 03-07 April - 2006 \n\n\n"); exit(0); } Slide20:  Compile your script with: gcc –o c_sample c_sample.c Modify the start_c_sample.sh script as follow: #!/bin/sh chmod 777 c_sample ./c_sample $1 Modify c_sample.jdl’s Arguments as follow: Arguments = "start_c_sample.sh <Your Name>"; Submit, inspect the status and retrieve its output when the job is finished.

Related presentations


Other presentations created by Flemel

What is a Play
17. 10. 2007
0 views

What is a Play

Jeopardy HIV STD HPV
06. 08. 2007
0 views

Jeopardy HIV STD HPV

Training School Bus Driver
17. 09. 2007
0 views

Training School Bus Driver

semantics
17. 09. 2007
0 views

semantics

philosophy
27. 09. 2007
0 views

philosophy

como rezar rosario
01. 10. 2007
0 views

como rezar rosario

WorldMuslimCongress Mecca
02. 10. 2007
0 views

WorldMuslimCongress Mecca

sentence
03. 10. 2007
0 views

sentence

DHL presentation
11. 10. 2007
0 views

DHL presentation

VIPAR Presentation
15. 10. 2007
0 views

VIPAR Presentation

annee2005
16. 10. 2007
0 views

annee2005

PrÃsentation JBaer 20avr
17. 10. 2007
0 views

PrÃsentation JBaer 20avr

Panel 17 8 Taking the Pulse
17. 10. 2007
0 views

Panel 17 8 Taking the Pulse

tom eddy
17. 09. 2007
0 views

tom eddy

grass
22. 10. 2007
0 views

grass

CXPBrasil June2005
26. 11. 2007
0 views

CXPBrasil June2005

Theor Astrophysics
29. 11. 2007
0 views

Theor Astrophysics

Carnival Brasil
30. 11. 2007
0 views

Carnival Brasil

boon
26. 10. 2007
0 views

boon

kumar eng
26. 10. 2007
0 views

kumar eng

talking freight
07. 11. 2007
0 views

talking freight

LHC Net meet 101205ppt
28. 09. 2007
0 views

LHC Net meet 101205ppt

cmd04 VW
16. 11. 2007
0 views

cmd04 VW

11 OrgsSimAndReal
22. 11. 2007
0 views

11 OrgsSimAndReal

PolComm1
08. 10. 2007
0 views

PolComm1

CAFTA training
03. 01. 2008
0 views

CAFTA training

2 casting forming
04. 01. 2008
0 views

2 casting forming

Sales Training II Final
11. 08. 2007
0 views

Sales Training II Final

Sonnet
11. 08. 2007
0 views

Sonnet

sommers rev oct 19 ppt
11. 08. 2007
0 views

sommers rev oct 19 ppt

Scherrer
11. 08. 2007
0 views

Scherrer

Topic 12 Genetic Disorders 3
11. 08. 2007
0 views

Topic 12 Genetic Disorders 3

Sonnet MLA
11. 08. 2007
0 views

Sonnet MLA

Autism AHistory
05. 01. 2008
0 views

Autism AHistory

Shortage of Girls in China
11. 08. 2007
0 views

Shortage of Girls in China

3 BasicRepro2
07. 12. 2007
0 views

3 BasicRepro2

How Adults Learn
06. 08. 2007
0 views

How Adults Learn

Introversion Turned Inside Out
06. 08. 2007
0 views

Introversion Turned Inside Out

Jenkins
06. 08. 2007
0 views

Jenkins

HCR 107 Overheads
06. 08. 2007
0 views

HCR 107 Overheads

N REG SANIT INT
22. 10. 2007
0 views

N REG SANIT INT

022 Hexapods for robot soccer
31. 12. 2007
0 views

022 Hexapods for robot soccer

Sung Su Truss Bridge
01. 01. 2008
0 views

Sung Su Truss Bridge

Slides KateSteinbeck
11. 08. 2007
0 views

Slides KateSteinbeck

Senate Hearing 2000
11. 08. 2007
0 views

Senate Hearing 2000

William Graham
23. 11. 2007
0 views

William Graham

truman7
29. 12. 2007
0 views

truman7

231nm02
29. 09. 2007
0 views

231nm02

chpt 1 ppt
24. 02. 2008
0 views

chpt 1 ppt

HIV AIDS in Europe
06. 08. 2007
0 views

HIV AIDS in Europe

Heidtke
29. 02. 2008
0 views

Heidtke

NIBSSep021
28. 12. 2007
0 views

NIBSSep021

07 Uae Profilers in TRMM GV Gage
17. 09. 2007
0 views

07 Uae Profilers in TRMM GV Gage

Protista
26. 03. 2008
0 views

Protista

original
07. 04. 2008
0 views

original

slides prog 71
11. 08. 2007
0 views

slides prog 71

wb english
27. 03. 2008
0 views

wb english

Malaria Blue Sky Final Slideshow
30. 03. 2008
0 views

Malaria Blue Sky Final Slideshow

Session1 Parenteau
10. 04. 2008
0 views

Session1 Parenteau

BS3008w1
13. 04. 2008
0 views

BS3008w1

healthcare
06. 08. 2007
0 views

healthcare

SRM Presentation Jim Hanco
14. 04. 2008
0 views

SRM Presentation Jim Hanco

finnews284 2
16. 04. 2008
0 views

finnews284 2

FX Hedging Strategies1
17. 04. 2008
0 views

FX Hedging Strategies1

ioko times showreel
22. 04. 2008
0 views

ioko times showreel

23 Practice Problems
07. 11. 2007
0 views

23 Practice Problems

PE2 U6 R
14. 02. 2008
0 views

PE2 U6 R

ASUD
18. 06. 2007
0 views

ASUD

armi leggere
18. 06. 2007
0 views

armi leggere

apq
18. 06. 2007
0 views

apq

apicorso
18. 06. 2007
0 views

apicorso

aeipres
18. 06. 2007
0 views

aeipres

901059 Kids Share ppt
18. 06. 2007
0 views

901059 Kids Share ppt

Sporting tips
18. 06. 2007
0 views

Sporting tips

semi2
18. 06. 2007
0 views

semi2

Saker Motorports USALLC
18. 06. 2007
0 views

Saker Motorports USALLC

Running on Fumes
18. 06. 2007
0 views

Running on Fumes

FBranca Luxembourg 3mar
26. 11. 2007
0 views

FBranca Luxembourg 3mar

Sisvalsoc
18. 06. 2007
0 views

Sisvalsoc

Shalom Auschwitz Ginocchio
18. 06. 2007
0 views

Shalom Auschwitz Ginocchio

scrittura
18. 06. 2007
0 views

scrittura

scheda unipol
18. 06. 2007
0 views

scheda unipol

satzherstellung
18. 06. 2007
0 views

satzherstellung

uss presentation
02. 01. 2008
0 views

uss presentation

hatikvah E2 short
22. 10. 2007
0 views

hatikvah E2 short

amer deadlocks
17. 09. 2007
0 views

amer deadlocks

deadlocks
17. 09. 2007
0 views

deadlocks

L14 Deadlock
17. 09. 2007
0 views

L14 Deadlock

Chapter 03
17. 09. 2007
0 views

Chapter 03

Slides Egidi
18. 06. 2007
0 views

Slides Egidi

Ballanti Diagramaps 070704
18. 06. 2007
0 views

Ballanti Diagramaps 070704

1111 123080220071234
24. 10. 2007
0 views

1111 123080220071234

Dr Tom Sparrow
17. 09. 2007
0 views

Dr Tom Sparrow

amiland gesetze
18. 06. 2007
0 views

amiland gesetze

Gen Micro130 ch1
16. 10. 2007
0 views

Gen Micro130 ch1

bus safety
15. 06. 2007
0 views

bus safety

xo Overheads 2
15. 06. 2007
0 views

xo Overheads 2

Wandering
15. 06. 2007
0 views

Wandering

walker ssm
15. 06. 2007
0 views

walker ssm

spelling
15. 06. 2007
0 views

spelling

spanish american humor
15. 06. 2007
0 views

spanish american humor

research paper checklist
15. 06. 2007
0 views

research paper checklist

Phil Logic 2000 1
15. 06. 2007
0 views

Phil Logic 2000 1

merchant
15. 06. 2007
0 views

merchant

Love 3
15. 06. 2007
0 views

Love 3

jewish humor
15. 06. 2007
0 views

jewish humor

oef 9 opl
15. 06. 2007
0 views

oef 9 opl

oef 2 opl
15. 06. 2007
0 views

oef 2 opl

obscenity andc ensorship
15. 06. 2007
0 views

obscenity andc ensorship

intro to personality psych
06. 08. 2007
0 views

intro to personality psych

Neorev
24. 02. 2008
0 views

Neorev

session 3b cogdell
18. 06. 2007
0 views

session 3b cogdell

jurors
06. 08. 2007
0 views

jurors

Hyde
06. 08. 2007
0 views

Hyde

Reunion Burgos
18. 06. 2007
0 views

Reunion Burgos

JSOBasic
06. 08. 2007
0 views

JSOBasic

sipf050405ih
23. 10. 2007
0 views

sipf050405ih

419 banks 051
10. 03. 2008
0 views

419 banks 051

pries vortraege
14. 11. 2007
0 views

pries vortraege

scar slides
17. 11. 2007
0 views

scar slides

Item 2 Mercury in Terns
06. 08. 2007
0 views

Item 2 Mercury in Terns

The new obesity guidance
11. 08. 2007
0 views

The new obesity guidance

Socrates IIa
11. 08. 2007
0 views

Socrates IIa

ID3 MedhaPradhan
26. 10. 2007
0 views

ID3 MedhaPradhan

AeroSpace Workshop JK mods
22. 10. 2007
0 views

AeroSpace Workshop JK mods

tritroph
30. 12. 2007
0 views

tritroph

Trick or Treaters
18. 06. 2007
0 views

Trick or Treaters

Saviez vous que
11. 08. 2007
0 views

Saviez vous que