INFSO-RI-508833 Enabling Grids for E-sciencE www.eu-egee.org GILDA Praticals Giuseppe La Rocca INFN – Catania gLite Tutorial at the EGEE User Forum CERN.

Slides:



Advertisements
Similar presentations
EGEE is a project funded by the European Union under contract IST EGEE Tutorial Turin, January Hands on Job Services.
Advertisements

INFSO-RI Enabling Grids for E-sciencE Workload Management System and Job Description Language.
The Grid Constantinos Kourouyiannis Ξ Architecture Group.
Job Submission The European DataGrid Project Team
Riccardo Bruno, INFN.CT Sevilla, 10-14/09/2007 GENIUS Exercises.
INFSO-RI Enabling Grids for E-sciencE EGEE Middleware The Resource Broker EGEE project members.
1 Architecture of the gLite WMS Esther Montes Prado CIEMAT 10th EELA Tutorial Madrid,
IST E-infrastructure shared between Europe and Latin America Architecture of the gLite WMS Alexandre Duarte CERN Fifth EELA.
E-infrastructure shared between Europe and Latin America Architecture of the WMS Manuel Rubio del Solar CETA-CIEMAT EELA Tutorial, Mérida,
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Job Submission Fokke Dijkstra RuG/SARA Grid.
Basic Grid Job Submission Alessandra Forti 28 March 2006.
FESR Consorzio COMETA - Progetto PI2S2 Using MPI to run parallel jobs on the Grid Marcello Iacono Manno Consorzio COMETA
INFSO-RI Enabling Grids for E-sciencE - GILDA WMS - Overview and Praticals Ruediger Berlich / Forschungszentrum Karlsruhe Mike Mineter.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Special Jobs Matias Zabaljauregui UNLP.
Procedures on how to enter the GRID Christos Papachristos Site Manager of the HG-05-FORTH and GR-04-FORTH-ICS nodes Distributed.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Luciano Díaz ICN-UNAM Based on Domenico.
Enabling Grids for E-sciencE EGEE-II INFSO-RI BG induction to GRID Computing and EGEE project – Sofia, 2006 Practical: Porting applications.
The gLite API – PART I Giuseppe LA ROCCA INFN Catania ACGRID-II School 2-14 November 2009 Kuala Lumpur - Malaysia.
INFSO-RI Enabling Grids for E-sciencE GILDA Praticals GILDA Tutors INFN Catania ICTP/INFM-Democritos Workshop on Porting Scientific.
Computational grids and grids projects DSS,
Enabling Grids for E-sciencE Workload Management System on gLite middleware Matthieu Reichstadt CNRS/IN2P3 ACGRID School, Hanoi (Vietnam)
Nadia LAJILI User Interface User Interface 4 Février 2002.
INFSO-RI Enabling Grids for E-sciencE Workload Management System Mike Mineter
1 Esther Montes Prado CIEMAT 10th EELA Tutorial Madrid, Hands-on on WMS (Review and Summary)
Group 1 : Grid Computing Laboratory of Information Technology Supervisors: Alexander Ujhinsky Nikolay Kutovskiy.
Enabling Grids for E-sciencE EGEE-II INFSO-RI Introduction to Grid Computing, EGEE and Bulgarian Grid Initiatives Plovdiv, 2006.
INFSO-RI Enabling Grids for E-sciencE GILDA WMS Praticals Ruediger Berlich / Forschungszentrum Karlsruhe Mike Mineter / National.
INFSO-RI Enabling Grids for E-sciencE GILDA Practicals : Security systems GILDA Tutors Singapore, 1st South East Asia Forum -- EGEE.
EGEE-III INFSO-RI Enabling Grids for E-sciencE Feb. 06, Introduction to High Performance and Grid Computing Faculty of Sciences,
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Job Submission Fokke Dijkstra RuG/SARA Grid.
Job Management DIRAC Project. Overview  DIRAC JDL  DIRAC Commands  Tutorial Exercises  What do you have learned? KEK 10/2012DIRAC Tutorial.
INFSO-RI Enabling Grids for E-sciencE Workflow Management in Giuseppe La Rocca INFN – Catania ICTP/INFM-Democritos Workshop on Porting.
INFSO-RI Enabling Grids for E-sciencE Claudio Cherubino, INFN Catania Grid Tutorial for users Merida, April 2006 Special jobs.
INFSO-RI Enabling Grids for E-sciencE Αthanasia Asiki Computing Systems Laboratory, National Technical.
INFSO-RI Enabling Grids for E-sciencE - GILDA WMS - Overview and Praticals Ruediger Berlich / Forschungszentrum Karlsruhe slides.
Enabling Grids for E-sciencE Workload Management System on gLite middleware - commands Matthieu Reichstadt CNRS/IN2P3 ACGRID School, Hanoi.
EGEE-0 / LCG-2 middleware Practical.
Tier 3 Status at Panjab V. Bhatnagar, S. Gautam India-CMS Meeting, July 20-21, 2007 BARC, Mumbai Centre of Advanced Study in Physics, Panjab University,
EGEE-II INFSO-RI Enabling Grids for E-sciencE Workload management in gLite 3.x - MPI P. Nenkova, IPP-BAS, Sofia, Bulgaria Some of.
INFSO-RI Enabling Grids for E-sciencE Job Submission Tutorial (material from INFN Catania)
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Moisés Hernández Duarte UNAM FES Cuautitlán.
EGEE-II INFSO-RI Enabling Grids for E-sciencE Command Line Grid Programming Spiros Spirou Greek Application Support Team NCSR “Demokritos”
E-infrastructure shared between Europe and Latin America FP6−2004−Infrastructures−6-SSA Special Jobs Valeria Ardizzone INFN - Catania.
Enabling Grids for E-sciencE EGEE-II INFSO-RI Porting an application to the EGEE Grid & Data management for Application Rachel Chen.
Enabling Grids for E-sciencE Sofia, 17 March 2009 INFSO-RI Introduction to Grid Computing, EGEE and Bulgarian Grid Initiatives –
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks WMS tricks & tips – further scripting Giuseppe.
Biomed tutorial 1 Enabling Grids for E-sciencE INFSO-RI EGEE is a project funded by the European Union under contract IST JDL Flavia.
User Interface UI TP: UI User Interface installation & configuration.
LCG2 Tutorial Viet Tran Institute of Informatics Slovakia.
Job Management Beijing, 13-15/11/2013. Overview Beijing, /11/2013 DIRAC Tutorial2  DIRAC JDL  DIRAC Commands  Tutorial Exercises  What do you.
GRID commands lines Original presentation from David Bouvet CC/IN2P3/CNRS.
Introduction to Computing Element HsiKai Wang Academia Sinica Grid Computing Center, Taiwan.
FESR Consorzio COMETA - Progetto PI2S2 Using MPI to run parallel jobs on the Grid Marcello Iacono Manno Consorzio Cometa
INFSO-RI Enabling Grids for E-sciencE GILDA Praticals GILDA Tutors INFN Catania EGEE Tutorial Rome November 2005.
Enabling Grids for E-sciencE Work Load Management & Simple Job Submission Practical Shu-Ting Liao APROC, ASGC EGEE Tutorial.
EGEE is a project funded by the European Union under contract IST Job Submission Giuseppe La Rocca EGEE NA4 Generic Applications INFN Catania.
Special jobs with the gLite WMS
Corso di Calcolo Parallelo Grid Computing
EGEE tutorial, Job Description Language - more control over your Job Assaf Gottlieb Tel-Aviv University EGEE is a project.
Alexandre Duarte CERN Fifth EELA Tutorial Santiago, 06/09-07/09,2006
Workload Management System
5. Job Submission Grid Computing.
Special Jobs: MPI Alessandro Costa INAF Catania
login: clermont-ferrandxx password: GridCLExx
Certificates Usage and Simple Job Submission
The gLite Workload Management System
Certificates Usage and Simple Job Submission
Certificates Usage and Simple Job Submission
gLite Job Management Christos Theodosiou
GENIUS Grid portal Hands on
Presentation transcript:

INFSO-RI Enabling Grids for E-sciencE GILDA Praticals Giuseppe La Rocca INFN – Catania gLite Tutorial at the EGEE User Forum CERN – Switzerland, February 2006

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February 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

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February Command Line Interface Job Submission – Perform the job submission to the Grid. $ glite-job-submit [options] – where is a file containing the job description, usually with extension.jdl. --vo : perform submission with a different VO than the UI default one. --output, -o save jobId on a file. --resource, -r specify the resource for execution. --nomsgi neither message nor errors on the stdout will be displayed.

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February If the request has been correctly submitted this is the tipical output that you can get: glite-job-submit test.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: - =================================================================== In case of failure, an error message will be displayed instead, and an exit status different form zero will be retured. Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February 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). Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February It is possible to see which CEs are eligible to run a job specified by a given JDL file using the command glite-job-list-match test.jdl Connecting to host lxshare0380.cern.ch, port 7772 Selected Virtual Organisation name (from UI conf file): dteam *************************************************************************** COMPUTING ELEMENT IDs LIST The following CE(s) matching your job requirements have been found: adc0015.cern.ch:2119/jobmanager-lcgpbs-infinite adc0015.cern.ch:2119/jobmanager-lcgpbs-long adc0015.cern.ch:2119/jobmanager-lcgpbs-short *************************************************************************** Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February After a job is submitted, it is possible to see its status using the glite-job-status command. glite-job-status ************************************************************* BOOKKEEPING INFORMATION: Printing status info for the Job: Current Status: Scheduled Status Reason: unavailable Destination: lxshare0277.cern.ch:2119/jobmanager-pbs-infinite reached on: Fri Aug 1 12:21: ************************************************************* Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February The option -i can be used to specify a file with a list of job identifiers (saved previously with the -o option of glite-job-submit). glite-job-status -i jobs.list : 2 : 3 : 4 : a : all q : quit Choose one or more edg_jobId(s) in the list - [1-4]all: If the - -all option is used instead, the status of all the jobs owned by the user submitting the command is retrieved. Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February The --status (-s) option makes the command retrieve only the jobs that are in the specified state, and the --exclude (-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. glite-job-status --all -s Done -s Running Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February A job can be canceled before it ends using the command glite-job-cancel. glite-job-cance l 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) - =========================================================== Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February After the job has finished (it reaches the DONE status), its output can be copied to the UI glite-job-output Retrieving files from host lxshare0234.cern.ch ***************************************************************** JOB GET OUTPUT OUTCOME Output sandbox files for the job: - have been successfully retrieved and stored in the directory: /tmp/jobOutput/snPegp1YMJcnS22yF5pFlg ***************************************************************** By default, the output is stored under /tmp, but it is possible to specify in which directory to save the output using the - -dir option. Command Line Interface (cont.)

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February Exercise 1

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February 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"}; ] ls.sh #!/bin/sh /bin/ls $1 Make ls.sh script executable with chmod +x ls.sh Run an ls command on a resource

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February Exercise 2

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February [ Type = "Job"; JobType = "MPICH"; Executable = "MPItest.sh"; NodeNumber = 2; Arguments = "cpi 2"; StdOutput = "test.out"; StdError = "test.err"; InputSandbox = {"MPItest.sh","cpi"}; OutputSandbox = {"test.err","test.out","executable.out"}; Requirements = other.GlueCEInfoLRMSType == "PBS" || other.GlueCEInfoLRMSType == "LSF"; ] mpi.jdl Actually the Local Resource Manager supported are PBS and LSF only. Actually the Local Resource Manager supported are PBS and LSF only. The number of threads specified with NodeNumber attribute agrees with the second Argument. It will be used during the invoking of mpirun command.

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February Exercise 3

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February Modify c_sample.c file as follow: #include int main(int argc, char **argv) { printf("\n\n\n"); printf("Hello !\n"); printf("Welcome to the gLite tutorial, CERN 27th-28th Feb \n\n\n"); exit(0); } This exercise allows user to submit a C program.

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February 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"}; ] Inspect the status and retrieve its output when the job is finished.

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February Exercise 4

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February Modify c_sample.c file as follow: #include int main(int argc, char **argv) { char *name = argv[1]; printf("\n\n\n"); printf("Hello %s!\n“,name); printf("Welcome to ICPT/INFM Tutorial, Trieste 07th- 17th Feb \n\n\n"); exit(0); }

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February Exercise (cont.) 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 "; Submit, inspect the status and retrieve its output when the job is finished.

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February Exercise 5 View user Credits

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February $ dgas-check-balance User: Giuseppe La Rocca : Subject: /C=IT/O=GILDA/OU=Personal Certificate/L=INFN Catania/CN=Giuseppe La Assigned credits (0=infinite): 0 Booked credits: 0 Used credits: 451 Used wall clock time (sec): 1187 Used CPU time (sec): 264 Accounted jobs: 22

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February Exercise 6 View CE Price

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February Usage: dgas-check-ce-price :2119/jobmanager-lcgpbs- Example: dgas-check-ce-price grid010.ct.infn.it:2119/jobmanager-lcgpbs-short Price Authority queried at: Thu Oct 20 18:43:39 CEST 2005 Computing Element: grid010.ct.infn.it:2119/jobmanager-lcgpbs- short Price (credits for 100 CPU secs): 170

Enabling Grids for E-sciencE INFSO-RI gLite Tutorial at the EGEE User Forum - CERN, February Questions…