AliEn Tutorial ALICE workshop Sibiu 20 th August, 2008 Pablo Saiz.

Slides:



Advertisements
Similar presentations
DataTAG WP4 Meeting CNAF Jan 14, 2003 Interfacing AliEn and EDG 1/13 Stefano Bagnasco, INFN Torino Interfacing AliEn to EDG Stefano Bagnasco, INFN Torino.
Advertisements

During the last three years, ALICE has used AliEn continuously. All the activities needed by the experiment (Monte Carlo productions, raw data registration,
Job Submission The European DataGrid Project Team
Southgreen HPC system Concepts Cluster : compute farm i.e. a collection of compute servers that can be shared and accessed through a single “portal”
Sun Grid Engine Grid Computing Assignment – Fall 2005 James Ruff Senior Department of Mathematics and Computer Science Western Carolina University.
Basic Grid Job Submission Alessandra Forti 28 March 2006.
Guide To UNIX Using Linux Third Edition
Very Quick & Basic Unix Steven Newhouse Unix is user-friendly. It's just very selective about who its friends are.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
AliEn Tutorial MODEL th May, May 2009 Installation of the AliEn software AliEn and the GRID Authentication File Catalogue.
The ATLAS Production System. The Architecture ATLAS Production Database Eowyn Lexor Lexor-CondorG Oracle SQL queries Dulcinea NorduGrid Panda OSGLCG The.
ALICE Offline Tutorial Using the AliEn Grid Client GSI, 4 th Mar
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
BaBar WEB job submission with Globus authentication and AFS access T. Adye, R. Barlow, A. Forti, A. McNab, S. Salih, D. H. Smith on behalf of the BaBar.
Riccardo Bruno INFN.CT Sevilla, Sep 2007 The GENIUS Grid portal.
AliEn uses bbFTP for the file transfers. Every FTD runs a server, and all the others FTD can connect and authenticate to it using certificates. bbFTP implements.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Guide To UNIX Using Linux Fourth Edition
– Introduction to the Shell 10/1/2015 Introduction to the Shell – Session Introduction to the Shell – Session 2 · Permissions · Users.
Alice off-line meeting Alberto Colla Cern, October 3, 2005 AliEn How-To Alice off-line meeting Cern, October 3, 2005 Alberto Colla (Alice off-line Calibration.
Experiment Support CERN IT Department CH-1211 Geneva 23 Switzerland t DBES P. Saiz (IT-ES) AliEn job agents.
110/10/06 - AliEn AliEn Tutorial Solutions Panos Christakoglou University of Athens - CERN.
Nadia LAJILI User Interface User Interface 4 Février 2002.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
- Distributed Analysis (07may02 - USA Grid SW BNL) Distributed Processing Craig E. Tull HCG/NERSC/LBNL (US) ATLAS Grid Software.
Group 1 : Grid Computing Laboratory of Information Technology Supervisors: Alexander Ujhinsky Nikolay Kutovskiy.
August 13, 2003Eric Hjort Getting Started with Grid Computing in STAR Eric Hjort, LBNL STAR Collaboration Meeting August 13, 2003.
Unix/Linux cs3353. The Shell The shell is a program that acts as the interface between the user and the kernel. –The shell is fully programmable and will.
CERN Using the SAM framework for the CMS specific tests Andrea Sciabà System Analysis WG Meeting 15 November, 2007.
Getting started DIRAC Project. Outline  DIRAC information system  Documentation sources  DIRAC users and groups  Registration with DIRAC  Getting.
T3 analysis Facility V. Bucard, F.Furano, A.Maier, R.Santana, R. Santinelli T3 Analysis Facility The LHCb Computing Model divides collaboration affiliated.
Job Management DIRAC Project. Overview  DIRAC JDL  DIRAC Commands  Tutorial Exercises  What do you have learned? KEK 10/2012DIRAC Tutorial.
Stephen Burke – Data Management - 3/9/02 Partner Logo Data Management Stephen Burke, PPARC/RAL Jeff Templon, NIKHEF.
Working with AliEn Kilian Schwarz ALICE Group Meeting April
1 Andrea Sciabà CERN Critical Services and Monitoring - CMS Andrea Sciabà WLCG Service Reliability Workshop 26 – 30 November, 2007.
AliEn AliEn at OSC The ALICE distributed computing environment by Bjørn S. Nilsen The Ohio State University.
INFSO-RI Enabling Grids for E-sciencE Αthanasia Asiki Computing Systems Laboratory, National Technical.
Enabling Grids for E-sciencE Workload Management System on gLite middleware - commands Matthieu Reichstadt CNRS/IN2P3 ACGRID School, Hanoi.
JAliEn Java AliEn middleware A. Grigoras, C. Grigoras, M. Pedreira P Saiz, S. Schreiner ALICE Offline Week – June 2013.
+ AliEn site services and monitoring Miguel Martinez Pedreira.
ANALYSIS TOOLS FOR THE LHC EXPERIMENTS Dietrich Liko / CERN IT.
Data Management The European DataGrid Project Team
M. Oldenburg GridPP Metadata Workshop — July 4–7 2006, Oxford University 1 Markus Oldenburg GridPP Metadata Workshop July 4–7 2006, Oxford University ALICE.
Experiment Support CERN IT Department CH-1211 Geneva 23 Switzerland t DBES L. Betev, A. Grigoras, C. Grigoras, P. Saiz, S. Schreiner AliEn.
EGEE 3 rd conference - Athens – 20/04/2005 CREAM JDL vs JSDL Massimo Sgaravatto INFN - Padova.
STAR Scheduler Gabriele Carcassi STAR Collaboration.
A GANGA tutorial Professor Roger W.L. Jones Lancaster University.
Experiment Support CERN IT Department CH-1211 Geneva 23 Switzerland t DBES The AliEn File Catalogue Jamboree on Evolution of WLCG Data &
LCG2 Tutorial Viet Tran Institute of Informatics Slovakia.
Linux Administration Working with the BASH Shell.
ATLAS Computing Wenjing Wu outline Local accounts Tier3 resources Tier2 resources.
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America LFC Server Installation and Configuration.
Antonio Fuentes RedIRIS Barcelona, 15 Abril 2008 The GENIUS Grid portal.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) gLite Grid Introduction Salma Saber Electronic.
Care and feeding of the alice grid Torino, Jan 15-16, 2009.
SEE-GRID-SCI WRF-ARW model: Grid usage The SEE-GRID-SCI initiative is co-funded by the European Commission under the FP7 Research Infrastructures.
Experiment Support CERN IT Department CH-1211 Geneva 23 Switzerland t DBES A. Abramyan, S. Bagnasco, L. Betev, D. Goyal, A. Grigoras, C.
Advanced Computing Facility Introduction
AliEn Tutorial Panos Christakoglou University of Athens - CERN
Basic aliensh S. Bagnasco, INFN Torino CNAF Nov 27-28, 2007.
UML diagrams for the AliEn job execution part and PackMan service
Running a job on the grid is easier than you think!
Running a job on the grid is easier than you think!
The Linux Operating System
Shell Script Assignment 1.
Artem Trunov and EKP team EPK – Uni Karlsruhe
CSE 303 Concepts and Tools for Software Development
Chapter Four UNIX File Processing.
gLite Job Management Christos Theodosiou
Presentation transcript:

AliEn Tutorial ALICE workshop Sibiu 20 th August, 2008 Pablo Saiz

2 August 2008 Installation of the AliEn software. AliEn and the GRID Authentication – Possible problems. General description of the shell: Working with the file catalogue: Submitting jobs References Outline I

3 August 2008 Installation Please, do it now! It might take ~10 min...

4 August 2008 AliEn, AliEn 2 ALICE ENvironment on the GRID GRID middleware Developed as single entry point to the GRID for ALICE Used also by other VOs All the components necessary to build a GRID and interact with other GRIDs File System with metadata Authorization, authentication, job optimization and execution, storage management Audit, quotas, monitoring Interfaces to various GRID implementations Used since: 2002 for centrally managed productions 2006 for user analysis

5 August 2008 AliEn 2 File Catalogue Mapping from LFN to SE and PFN UNIX-like file system Metadata GUID Used by all other services ALICE USERS ALICE SIM Tier1 ALICE LOCAL |--./ | |--cern.ch/ | | |--user/ | | | |--a/ | | | | |--admin/ | | | | | | | | | |--aliprod/ | | | | | |--f/ | | | | |--fca/ | | | | | |--p/ | | | | |--psaiz/ | | | | | |--as/ | | | | | | | | |--dos/ | | | | | | | | |--local/ |--simulation/ | | / | | |--V3.05/ | | | |--Config.C | | | |--grun.C | |--36/ | | |--stderr | | |--stdin | | |--stdout | | |--37/ | | |--stderr | | |--stdin | | |--stdout | | |--38/ | | |--stderr | | |--stdin | | |--stdout | | | | | |--b/ | | | | |--barbera/

6 August 2008 Certificates should be stored under $HOME/.globus Globus enforces privacy on your private key! (chmod 400) Authentication – Preparing the certificates You have to be registered as an ALICE user

7 August 2008 Registering as an ALICE user

8 August 2008 Authentication – Changes in env. variables

9 August 2008 Authentication command – Username is optional (default is the local username) Put certificate password Happens every 24 hours Authentication – Getting a GRID proxy

10 August 2008 Authentication – Getting an AliEn token

11 August 2008 Globus related: Permissions on $HOME/.globus/userkey.pem are not private to the user – chmod 400 userkey.pem Your certificate authority is exotic and not known to the server. Your certificate has expired. Clock skew: Your local computer time is in the future with respect to the server's time. Your local computer time is more in the past than the certificate life time. Authentication – Authentication problems I

12 August 2008 alien-token-init related: You have not gone through all 5 steps of the AliEn user registration. You have not given the AliEn user name as an argument to the token-init command and your local user name is not identical to the AliEn user name. The script wants to bootstrap the installation but you don't have write permissions on the installation path – Avoid bootstrapping by setting the GSHELL_ROOT environment variable. Authentication – Authentication problems II

13 August 2008 Upload your certificates to your machines: Store them under e.g: $HOME/.globus/ Check that the key file is read only. Setup the environment export PATH=$HOME/alien/i686-pc-linux- gnu/3.4.6/bin/:$PATH:$HOME/alien/api/bin (if your local user is different from your alien user) export ALIEN_USER=psaiz Get a valid alien token alien-token-init Authentication – Try it out

14 August 2008 Standard bash shell with grid comands Main bash features are available. Not all shell helper programs are available. Some local commands (like ls, cat etc) are overwritten with the corresponding GRID commands. File/path tab completion in the virtual GRID directory. Message of the day. Shell – Accessing the shell

15 August 2008 Tab completion working!!! Shell – Basic commands I

16 August 2008 Shell – Basic commands II

17 August 2008 Shell – Basic commands III

18 August 2008 Shell – whereis command

19 August 2008 Shell – Viewing the files I

20 August 2008 Shell – Viewing the files II

21 August 2008 Define your preferred editor via the variable EDITOR: 'emacs' 'emacs -nw' 'xemacs' 'xemacs -nw' 'pico' 'vi' (DEFAULT) 'vim' The file is temporary in /tmp on your local disk and then is uploaded once you exit the editor! Shell – Editing files

22 August 2008 Shell – Clear old versions

23 August 2008 GOLDEN RULE If you want to access your local directory structure while you are in the shell you should start by having the prefix “file:” e.g: cp file:/home/pchrist/gshell.sh gshell.sh Shell – Copying files from/to the F.C.

24 August 2008 Shell – File catalogue structure The path name will be: for ‘real’ data: /data/ / / / for simulated data: /sim/ / / / Subdirectories will be called: Raw/ cond/ reco/ /ESD/ reco/ /AOD/ … File names will look like this:.AliESD.root For further information see: Directories for Software packages: /alice/packages

25 August 2008 aliensh:[alice] [1] find -x pp /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/* *Merged*tag.root > pp.xml Redirect the output to the xml collection. Shell – Querying the F.C. I

26 August 2008 aliensh:[alice] [1] find -x pp /alice/data/2008/LHC08a/*/reco/Pass3/* *Merged*tag.root Run:collision_system=”pp” and Run:stop<" :20:33" and Run:start>" " > pp.xml Shell – Querying the F.C. II

27 August 2008 Access the alien shell. aliensh Check your user name: whoami List the contents of your home directory ls Print the working directory pwd Create the following directory structure in your AliEn space: $HOME/bin (if it is not there) $HOME/macros and $HOME/jdl Get the information of the file: whereis /alice/bin/aliroot Shell – Try it out I

28 August 2008 See the file /alice/bin/aliroot cat /alice/bin/aliroot Copy the file to your local machine cp /alice/bin/aliroot file:/tmp/aliroot Exit the shell and check the file Access the shell again and query the f.c. and get all the tag files (*.tag.root) under: /alice/sim/PDC_08/LHC08b1/ /* Get the output on your terminal (find /alice/…) Get the output on your terminal in a xml format (find -x tag /alice/…) Redirect the results to the tag.xml collection: the output will not be stored in your AliEn working directory but rather in your local working directory. Repeat the previous exercise limiting the number of output files to 5 (find -l 5...). Shell – Try it out II

29 August 2008 Submitting jobs Jobs TaskQueue Job Broker Job Manager CE JA Central services Site services SplittingExpired PrioritiesMerging Zombies Job optimizers File catalogue LFN GUID Meta data FTD Packman MonALISA JA CE SE Packman MonALISA FTD SE Site A Site B

30 August 2008 Executable: Compulsory field where we give the lfn of the executable that should be stored in /bin or $V0/bin or $HOME/bin. Arguments: They will be passed to the executable. Packages: Type packages in the shell to see what kind of packages are installed. InputFile: The files that will be transported to the node where the job will run. InputData: It will require that the job will be executed in a site close to the files specified here. InputDataList: The filename in which the Job Agent will write the InputData list. InputDataListFormat: The format of the InputData list. JDL fields I

31 August 2008 OutputFile: The files that will be registered in the catalog once the job finishes. OutputArchive: What files will be archived in a zip file. Validationcommand: Specifies the script to be used as a validation script. Receive a mail when the job finishes. TTL: The maximum run time of your job. Split: Split the jobs in several sub jobs. JDL fields II

32 August 2008 Batch analysis – Job status

33 August 2008 If everything is ok with your jdl then your job is submitted and a.is assigned to it. You get a submission error message if: i)a file listed in the jdl is missing ii)a package defined in the jdl is not listed in the packman Submitting jobs

34 August 2008 Checking the job status I

35 August 2008 Checking the job status II

36 August 2008 Checking the priority

37 August 2008 Checking the job output I

38 August 2008 Checking the job output II

39 August 2008 Submit the following JDL: Executable = “date"; OutputArchive = =" "; Once the job finishes, retrieve the output It should be in /proc/ / /job-output Where was the job executed? What does the job ‘date’ do? Submitting jobs – Try it out I

40 August 2008 Create the file analysis.jdl in your local directory, with the content: Packages = { "APISCONFIG::V2.4", }; Executable = "Sh_AnaESD_MC_CheckGenCascade.sh"; InputFile = {"LF:/alice/cern.ch/user/p/psaiz/macros/runBatchESD_MC_CheckGenCascade.C", "LF:/alice/cern.ch/user/p/psaiz/macros/STEERBase.par", "LF:/alice/cern.ch/user/p/psaiz/macros/ESD.par", "LF:/alice/cern.ch/user/p/psaiz/macros/ANALYSIS.par","LF:/alice/cern.ch/user/p/psaiz/macros/AOD.par", "LF:/alice/cern.ch/user/p/psaiz/macros/ANALYSISalice.par","LF:/alice/cern.ch/user/p/psaiz/macros/AliTaskESD_ MC_CheckGenCascade.h","LF:/alice/cern.ch/user/p/psaiz/macros/AliTaskESD_MC_CheckGenCascade.cxx"}; OutputArchive = InputDataListFormat = "xml-single"; InputDataList = "wn.xml"; InputData = { "LF:/alice/sim/PDC_08/LHC08q/230009/134/Run Event0_100.ESD.tag.root,nodownload", "LF:/alice/sim/PDC_08/LHC08q/230009/177/Run Event0_100.ESD.tag.root,nodownload"}; OutputDir= "/alice/cern.ch/user/ p/psaiz/TutorialOuptut"; =" "; Submitting jobs – Try it out II Change /p/psaiz/ by your username Thanks to Antonin Maire for this example

41 August 2008 Enter alien aliensh Copy the files from /alice/cern.ch/user/p/psaiz/tutorial/files/ mkdir macros bin jdl cp /alice/user/p/psaiz/tutorial/files/* macros/ cp /alice/user/p/psaiz/bin/Sh_AnaESD_MC_CheckGenCascade.sh bin/ Upload the file analysis.jdl into jdl/ cp ffle:analysis.jdl jdl/analysis.jdl Once finished, submit your batch job by typing: submit jdl/analysis.jdl Running jobs– Try it out III

42 August 2008 Check your job priority by typing: “queue priority jobs $username”. Display the jdl of your job by typing: “ps -jdl $jobid”. Trace the status of your job by typing: “ps -trace $jobid”. When the job 's status turns to RUNNING you can get the stdout and stderr of the job by typing: “spy $jobid stdout”. “spy $jobid stderr”. When the job finishes, check the output in $HOME/TutorialOutput, and get it into your machine Running jobs– Try it out IV

43 August 2008 Conclusion AliEn Interface to the GRID Developed by ALICE Usable by any VO In production since 2002 File Catalogue File and Metadata Job submission model Data movement and replication

44 August 2008 Registration – Certificates: AliEn: User's guide: Previous tutorials: References

45 August