A GANGA tutorial Professor Roger W.L. Jones Lancaster University.

Slides:



Advertisements
Similar presentations
This presentation describes how to save files so that they cannot be changed by any user. This technique is a simple way of giving access to documents,
Advertisements

Updating User Details and Password Tutorial 5. Step 1.1 From the Energy Infrastructure Portal Home Page, click the Enter Site link to access the Portal.
GANGA Overview Germán Carrera, Alfredo Solano (CNB/CSIC) EMBRACE COURSE Monday 19th of February to Friday 23th. CNB-CSIC Madrid.
HELP GUIDE NEW USER REGISTRATION (SLIDE 2) TAKING A QUIZ (SLIDE 8) REVIEWING A QUIZ (SLIDE 17) GROUP MEMBERSHIP (SLIDE 26) CREATING QUIZZES (SLIDE 31)
Riccardo Bruno, INFN.CT Sevilla, 10-14/09/2007 GENIUS Exercises.
Sun Grid Engine Grid Computing Assignment – Fall 2005 James Ruff Senior Department of Mathematics and Computer Science Western Carolina University.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
End and Start of Year Administration Tasks. Account Administration Deleting Accounts Creating a Leavers Group Creating New Accounts: Creating accounts.
Downloading and Installing AutoCAD Architecture 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the software.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
SOUL Software Installation
GETTING STARTED ON THE GRID: W. G. SCOTT (RAL/PPD) RAL PHYSICS MEETING TUES 15 MAY GENERATED 10K SAMPLES IN EACH CHANNEL ON LXPLUS (IN 2006) SIMULATED/DIGITISDED.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Ganga Developments Karl Harrison (University of Cambridge) 18th GridPP Meeting University of Glasgow, 20th-21st March 2007
© 2012 LogiGear Corporation. All Rights Reserved Robot framework.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America Luciano Díaz ICN-UNAM Based on Domenico.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
5 November 2001F Harris GridPP Edinburgh 1 WP8 status for validating Testbed1 and middleware F Harris(LHCb/Oxford)
Another Method to Open WebSpace as a Web Folder Alternative Method for Creating Web Folder in WebSpace, Slide 1Copyright © 2004, Jim Schwab, University.
Distributed Analysis using Ganga I.Ideas behind Ganga II.Getting started III.Running ATLAS applications Distributed Analysis Tutorial ATLAS Computing &
Installing SIGNZ on a stand- alone machine. These slides will guide you through the installation of the SIGNZ ‘server’ and ‘client’ components on one machine.
ECT 250: Survey of E-Commerce Technology FrontPage Publishing pages Unix.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
Creating and Publishing Your own web site PC Version SEAS 001 Professor Ahmadi.
Belle MC Production on Grid 2 nd Open Meeting of the SuperKEKB Collaboration Soft/Comp session 17 March, 2009 Hideyuki Nakazawa National Central University.
Group 1 : Grid Computing Laboratory of Information Technology Supervisors: Alexander Ujhinsky Nikolay Kutovskiy.
Downloading and Installing Autodesk Revit 2016
August 13, 2003Eric Hjort Getting Started with Grid Computing in STAR Eric Hjort, LBNL STAR Collaboration Meeting August 13, 2003.
Exporting User Certificate from Internet Explorer.
GRID. Register Fill the form. Your IP (Juanjo) signature is needed and the one from the.
INFSO-RI Enabling Grids for E-sciencE How to join GILDA Riccardo Bruno INFN gLite Tutorial at the First EGEE User Forum CERN,
Association with the Gilda Virtual Organization Certificate,VO membership, and MyProxy Server usage.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Tour Overview Introduction Collage Basics Collage Basics (Templates and Tools) Computer Configuration Bookmark Collage Getting Started Tour Collage Terminology.
Introduction to Ganga Karl Harrison (University of Cambridge) ATLAS Distributed Analysis Tutorial Milano, 5-6 February 2007
Getting started DIRAC Project. Outline  DIRAC information system  Documentation sources  DIRAC users and groups  Registration with DIRAC  Getting.
EGEE-II INFSO-RI Enabling Grids for E-sciencE The GILDA training infrastructure.
Ganga 4 Basics - Tutorial Jakub T. Moscicki ARDA/LHCb Ganga Tutorial, November 2005.
INFSO-RI Enabling Grids for E-sciencE Running ECCE on EGEE clusters Olav Vahtras KTH.
Ganga 4 Basics - Tutorial Jakub T. Moscicki ARDA/LHCb Ganga Tutorial, September 2006.
April 27, 2006 The New GANGA GUI 26th LHCb Software Week C L Tan
INFSO-RI Enabling Grids for E-sciencE ARDA Experiment Dashboard Ricardo Rocha (ARDA – CERN) on behalf of the Dashboard Team.
Testing and integrating the WLCG/EGEE middleware in the LHC computing Simone Campana, Alessandro Di Girolamo, Elisa Lanciotti, Nicolò Magini, Patricia.
K. Harrison CERN, 22nd September 2004 GANGA: ADA USER INTERFACE - Ganga release status - Job-Options Editor - Python support for AJDL - Job Builder - Python.
Distributed Data Analysis with GANGA (Tutorial) Alexander Zaytsev Budker Institute of Nuclear Physics (BudkerINP), Novosibirsk On the basis of GANGA EGEE.
Using Ganga for physics analysis Karl Harrison (University of Cambridge) ATLAS Distributed Analysis Tutorial Milano, 5-6 February 2007
EGEE-III INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Computational chemistry with ECCE on EGEE.
2 June 20061/17 Getting started with Ganga K.Harrison University of Cambridge Tutorial on Distributed Analysis with Ganga CERN, 2.
ATLAS-specific functionality in Ganga - Requirements for distributed analysis - ATLAS considerations - DIAL submission from Ganga - Graphical interfaces.
INFSO-RI Enabling Grids for E-sciencE Using of GANGA interface for Athena applications A. Zalite / PNPI.
ATLAS Distributed Analysis Dietrich Liko IT/GD. Overview  Some problems trying to analyze Rome data on the grid Basics Metadata Data  Activities AMI.
Distributed Analysis Tutorial Dietrich Liko. Overview  Three grid flavors in ATLAS EGEE OSG Nordugrid  Distributed Analysis Activities GANGA/LCG PANDA/OSG.
K. Harrison CERN, 21st February 2005 GANGA: ADA USER INTERFACE - Ganga release Python client for ADA - ADA job builder - Ganga release Conclusions.
INFSO-RI Enabling Grids for E-sciencE Ganga 4 Technical Overview Jakub T. Moscicki, CERN.
Breaking the frontiers of the Grid R. Graciani EGI TF 2012.
CACI Proprietary Information | Date 1 PD² SR13 Client Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8, 2011.
ATLAS Physics Analysis Framework James R. Catmore Lancaster University.
Seven things you should know about Ganga K. Harrison (University of Cambridge) Distributed Analysis Tutorial ATLAS Software & Computing Workshop, CERN,
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) gLite Grid Introduction Salma Saber Electronic.
Starting Analysis with Athena (Esteban Fullana Torregrosa) Rik Yoshida High Energy Physics Division Argonne National Laboratory.
CACI Proprietary Information | Date 1 Upgrading to webMethods Product Suite Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8,
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Continue by your own… Riccardo Bruno
GRID COMPUTING.
CS1010: Intro Workshop.
Patricia Méndez Lorenzo ALICE Offline Week CERN, 13th July 2007
Part 3 – Remote Connection, File Transfer, Remote Environments
Submit BOSS Jobs on Distributed Computing System
Assignment Preliminaries
Getting Started: Amazon AWS Account Creation
Presentation transcript:

A GANGA tutorial Professor Roger W.L. Jones Lancaster University

Introduction  This tutorial gives a short introduction to using the Grid with GANGA  GANGA = user front end  GANGA is used by several communities, and by ATLAS and LHCb - may be useful for your other local users  You will submit some simple tasks to the Grid with GANGA  You will see a demonstration of running ATLAS software on the Grid using GANGA  Those with ATLAS softare set up can try this  This tutorial is based on the material here: I invite you to try all the tutorial material offline. The tutorial normally runs over 2 days, so there is a lot in it, but it is well documented

3 Ganga

4 Grid Infrastructure WLCG based on EGEE and OSG Grid infrastructure. GridPP WLCG EGEE OSG NDGF

Applications and Back ends PBSOSGLocalLSFPANDA US-ATLAS WMS LHCb WMS Executable Athena (Simulation/Digitisation/ Reconstruction/Analysis) AthenaMC (Production) Gauss/Boole/Brunel/DaVinci (Simulation/Digitisation/ Reconstruction/Analysis) LHCbExperiment neutralATLAS Implemented Work in progress In test/works  Running of a particular Application on a given Backend is enabled by implementing an appropriate adapter component or Runtime Handler  Can often use same Runtime Handler for several Backend: less coding

Ganga - User Interface Job details Logical Folders Job Monitoring Log window Job builder Scriptor Ganga GUI There is also a scripting interface (like pAthena) I will use the line mode……

Step 1 - Grid Certificate into LXPLUS (I)  To submit Grid jobs you need a Grid certificate  We will be using the CERN LXPLUS User Interface so your certificate must be installed on LXPLUS  Go to the browser of the machine into which you retrieved your Grid Certificate  Find the “Certificates” dialogue box - often in “Preferences”, then “Advanced”  Click on “Export Certificate” or “Export Key Pair”  Choose a location on the local machine and click “OK”  Open a terminal window  Go to the location of the file you just exported, which will end with.pfx or.p12  Copy the file to your LXPLUS account:  scp myfile.p12 / /.  Log into your lxplus account……

 mkdir.globus  mv myfile.p12.globus/.  cd.globus  openssl pkcs12 -in myfile.p12 -clcerts -nokeys -out usercert.pem  openssl pkcs12 -in myfile.p12 -nocerts -out userkey.pem  chmod 400 userkey.pem  chmod 444 usercert.pem Step 1 - Grid Certificate into LXPLUS (II) (unless you have one already)

Step 2 - Make an executable file and test it  cd $HOME  Start up your favourite text editor  Copy in these lines and save the file (call it myscript.sh)  Test it: source myscript.sh #!/bin/sh echo 'myscript.sh running...’ echo " ” /bin/hostname echo " ” env

Step 3: Start up GANGA  source /afs/cern.ch/sw/ganga/etc/setup-atlas.sh  ganga  Then enter your Grid Certificate password

Step 4: Set up and run a LOCAL job  j=Job()  j.application=Executable()  j.application.exe=File('$HOME/myscript.sh')  j.backend=Local()  j.submit()

Step 5: monitoring  To see all your jobs: jobs  To the status of a single job: jobs(number).status()  To see the details of a single job: jobs(number)

Step 6: collect your results  Exit ganga: CTRL+D  cd $HOME/gangadir/Local/number/output  Open the file stdout with your favourite editor. This should show the output from your script.  You can look at the files from within GANGA as well:  !less $j.outputdir/stdout (note that ‘!’ means ‘execute this command in the shell, not GANGA)

Step 7: Copy the job and switch to LCG mode  Start up GANGA again  jobs(number).copy()  jobs(number+1).backend=LCG()  jobs(number+1).submit()  Do your monitoring, etc again  When the job status is “completed”, check the output file again  In general this is how you should work; set up and test a LOCAL job, then copy and switch to LCG only when it is working  You can see where in the world the job ran by typing jobs(number) and looking in the back-end section of the report (under ‘CE’)

Step 8: Try the GANGA graphical interface  The GANGA graphical interface (GUI) can do everything that the command line can do, but allows you to point and click  You can only use it if x-forwarding is set up on your terminal; to test this type xclock; you should see a clock on the screen.  To open the GUI, quit GANGA and re-start but with an additonal --gui option after ganga ganga --gui ganga --gui  Can you see your two jobs?  Can you submit a new job through the GUI?

Help on GANGA  Several Ganga-related mailing lists have been set up, as detailed below. Most of these are managed within the framework of the CERN Simba ListBox Service, so that you can subscribe using the Simba web interface, and to access the archives you may need to give your username and password for the CERN Mail Server. The ATLAS HyperNews list is an exception, and to subscribe to this, or access the forum, you need to have registered using the ATLAS HyperNews New Membership page. General information on Ganga project  List for Ganga developers  ATLAS HyperNews forum for Ganga user support 

What’s next  A demonstration of how to run the ATLAS software framework in GANGA

An Athena Demonstration  This assumes you are in the ATLAS VO, your cmt area set up and have checked out the examples into a test area….. source cmthome/setup.sh -tag= ,32 cd $TestArea/PhysicsAnalysis/AnalysisCommon/UserAnalysis/ cmt cmt config source /afs/cern.ch/sw/ganga/install/etc/setup-atlas.csh Ganga #This is a temporary fix because the CERN srm was renamed without warning!!!!!* config['Athena']['LCGOutputLocation']='srm://srm- atlas.cern.ch/castor/cern.ch/grid/atlas/scratch/Roger.Jones/ ganga' #done - at least you see how to change config options - you can #also edit your.gangarc file to do the same thing….. j = Job() j.name='your_name'

An Athena Demonstration j.application=Athena()j.application.prepare(athena_compile=False) j.application.option_file='/afs/cern.ch/user/r/rjones/testarea/AtlasOffline /PhysicsAnalysis/AnalysisCommon/UserAnalysis/run/Analy sisSkeleton_topOptions.py' j.application.max_events='100'j.inputdata=DQ2Dataset() j.inputdata.dataset="fdr08_run StreamMuon.merge.AOD.o1_r12 _t1" j.outputdata=ATLASOutputDataset()j.outputdata.outputdata=['AnalysisSkeleton.aan.root']j.backend=LCG() #Just in case you need to force a job to a specific site….. #j.backend.requirements.sites= ['LANCS'] j.submit()

An Athena Demonstration To monitor jobs: jobs To execute as a python script: execfile('/afs/cern.ch/user/r/rjones/testarea/myscript.py') When finished: jobs(jobid).outputdata.retrieve()