Download presentation
Presentation is loading. Please wait.
Published byPhilip Berry Modified over 8 years ago
1
Create an script to print “hello world” in an output file with also the information of an input file. The input file should be previously register in the catalogue. Get the ouput. 1.- Create the script to merge the input file with the “hello word” sentence. 2.- Create a JDL file. 3.- Look for a CE and SE where to send the job (IFCA or IAA). 4.- Send the job and save the ID in a file. 5.- Retrieve the files from the nodes.
2
Scripts: test.sh: #!/bin/bash DIRE=`pwd` lcg-cp srm://griddpm01.ifca.es/dpm/ifca.es/home/vo.formacion.es-ngi.eu/tut27/fiInput2.txt file://$DIRE/fileInput.txt echo $(cat fileInput.txt) >> fileOutput.txt echo "hello World!" >> fileOutput.txt fileInput.txt: [tut27@cg01 ~]$ cat fileInput.txt I'm Juan
3
JDL: Type = "job"; JobType = "normal"; Executable = "test.sh"; StdOutput = "test.out"; StdError = "test.err"; InputSandbox = { "test.sh" }; OutputSandbox = { "test.err", "test.out", "fileOutput.txt" }; requirements= other.GlueCEUniqueID =="ce.iaa.csic.es:2119/jobmanager-lcgpbs-forngi"; virtualorganisation = "vo.formacion.es-ngi.eu";
4
[tut27@cg01 ~]$glite-wms-job-submit -o myIds -a test.jdltut27@cg01 [tut27@cg01 ~]$glite-wms-job-status -i myIdstut27@cg01 [tut27@cg01 ~]$glite-wms-job-output --dir myDir -i myIdstut27@cg01 [tut27@cg01 ~]$lcg-infosites --vo vo.formacion.es-ngi.eu lfctut27@cg01 [tut27@cg01 ~]$export LFC_HOST="gridlfc01.ifca.es"tut27@cg01 [tut27@cg01 ~]$export LFC_HOME="/grid/vo.formacion.es- ngi.eu/tut27" [tut27@cg01 ~]$ lfc-ls /grid/vo.formacion.es-ngi.eu [tut27@cg01 ~]$ lfc-mkdir /grid/vo.formacion.es-ngi.eu/tut27 [tut27@cg01 ~]$ lfc-ls /grid/vo.formacion.es-ngi.eu tut27
5
CE and SE: [tut27@cg01 ~]$ glite-wms-job-list-match test.jdl
6
[tut27@cg01 ~]$ lcg-infosites --vo vo.formacion.es-ngi.eu ce #CPU Free Total Jobs Running Waiting ComputingElement ---------------------------------------------------------- 208 208 0 0 0 ce01-tic.ciemat.es:2119/jobmanager-lcgpbs-training 1 1 0 0 0 ce.egee.cesga.es:2119/jobmanager-lcgsge-GRID_ngifor 156 156 1 0 1 ce2.egee.cesga.es:2119/jobmanager-lcgsge-GRID_ngifor 156 156 1 0 1 ce3.egee.cesga.es:2119/jobmanager-lcgsge-GRID_ngifor 56 56 0 0 0 ce-sge-ngi.ceta-ciemat.es:2119/jobmanager-lcgsge-ngiform 22 22 0 0 0 ce-ieg.bifi.unizar.es:2119/jobmanager-lcgpbs-formangi 248 238 0 0 0 ce-iber.bifi.unizar.es:2119/jobmanager-lcgpbs-formangi 1616 1616 0 0 0 gridce01.ifca.es:2119/jobmanager-sge-ngifor 8 8 0 0 0 e-ce.iaa.es:2119/jobmanager-lcgpbs-forngi 448 448 0 0 0 ce.iaa.csic.es:2119/jobmanager-lcgpbs-forngi 141 53 33 12 21 ce01.macc.unican.es:2119/jobmanager-lcgpbs-grid 42 41 0 0 0 ngiesce.i3m.upv.es:2119/jobmanager-pbs-ngies [tut27@cg01 ~]$
7
[ tut27@cg01 ~]$ lcg-infosites --vo vo.formacion.es-ngi.eu se Avail Space(Kb) Used Space(Kb) Type SEs ---------------------------------------------------------- 311634212 1120905751 n.a se2.egee.cesga.es 62 214692993 n.a griddpm01.ifca.es 232960000 7 n.a e-se.iaa.es 311634212 1120905751 n.a se2.egee.cesga.es 1000 n.a n.a storm.ifca.es 214637510 5996 n.a se01.macc.unican.es 39959652288 22911301 n.a se01-tic.ciemat.es [tut27@cg01 ~]$
8
[tut27@cg01 ~]$ lcg-cr --vo vo.formacion.es-ngi.eu -v -P tut27/fiInput.txt -d griddpm01.ifca.es -l lfn:finput.txt file:fileInput.txt file:fileInput.txt
9
[tut27@cg01 ~]$ lcg-cr --vo vo.formacion.es-ngi.eu -v -P tut27/fiInput2.txt -d griddpm01.ifca.es -l lfn:finput2.txt file:fileInput.txt Using grid catalog type: lfc Using grid catalog : gridlfc01.ifca.es Checksum type: None SE type: SRMv2 Destination SURL : srm://griddpm01.ifca.es/dpm/ifca.es/home/vo.formacion.es-ngi.eu/tut27/fiInput2.txt Source SRM Request Token: cbe7cfdc-5582-456f-915d-83a50f3ef952 Source URL: file:/home/tut27/fileInput.txt File size: 9 VO name: vo.formacion.es-ngi.eu Destination specified: griddpm01.ifca.es Destination URL for copy: gsiftp://griddpm01.ifca.es/griddpm01.ifca.es:/pool00/vo.formacion.es-ngi.eu/2010-06- 30/fiInput2.txt.925364.0 # streams: 1 9 bytes 0.01 KB/sec avg 0.01 KB/sec inst Transfer took 2040 ms
10
Using LFN: lfn:/grid/vo.formacion.es-ngi.eu/tut27/finput2.txt Using GUID: guid:3ae1e303-2f30-4a62-9ba8-c4a43df9f5f8 Registering LFN: /grid/vo.formacion.es-ngi.eu/tut27/finput2.txt (3ae1e303-2f30-4a62-9ba8- c4a43df9f5f8) Registering SURL: srm://griddpm01.ifca.es/dpm/ifca.es/home/vo.formacion.es- ngi.eu/tut27/fiInput2.txt (3ae1e303-2f30-4a62-9ba8-c4a43df9f5f8) guid:3ae1e303-2f30-4a62-9ba8-c4a43df9f5f8 [tut27@cg01 ~]$ lfc-ls finput2.txt [tut27@cg01 ~]$
11
[tut27@cg01 ~]$ glite-wms-job-output --dir myDir -i myIds Homework: Modify the script to get the output through the catalogue
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.