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.

Slides:



Advertisements
Similar presentations
1 CHEP 2000, Roberto Barbera Tests of data management services in EDG 1.2 ALICE Off-line Week,
Advertisements

1 Introduction to UNIX Ke Liu
Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
Exploring the UNIX File System and File Security
Lesson 22 – Introduction to Linux Systems Administration.
Linux+ Guide to Linux Certification, Second Edition
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Prof. R. Willingale Department of Physics and Astronomy 2nd Year C+R 2 nd Year C and R Workshop Part of module PA2930 – 2.5 credits Venue: Computer terminal.
7/17/2009 rwjBROOKDALE COMMUNITY COLLEGE1 Unix Comp-145 C HAPTER 2.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  Currently there.
A crash course in njit’s Afs
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Learning basic Unix command IT 325 operating system.
Guide To UNIX Using Linux Fourth Edition
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Manage Directories and Files in Linux
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Introduction to Shell Script Programming
Introduction to Computer Organization & Systems Topics: Intro to UNIX COMP John Barr.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Linux+ Guide to Linux Certification, Second Edition
Vim Editor and Unix Command gcc compiler Computer Networks.
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.
Operating System What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. An operating.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
Basic Unix Commands CGS 3460, Lecture 6 Jan 23, 2006 Zhen Yang.
FTP Server API Implementing the FTP Server Registering FTP Command Callbacks Data and Control Port Close Callbacks Other Server Calls.
Lecture One. Objective: Provide description of the Command-Line Editor of Linux operating system. Enable students to understand the practical side of.
PostgreSQL Installation By: Keerthi Nelaturu Previous version by Ahmed Jeddah & Miguel Garzon.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Introduction to Programming Using C An Introduction to Operating Systems.
Manage Directories and Files in Linux Part 2. 2 Identify File Types in the Linux System The file types in Linux referred to as normal files and directories.
RT-LAB Electrical Applications 1 Opal-RT Technologies Use of the “Store Embedded” mode Solution RT-LAB for PC-104.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
JAliEn Java AliEn middleware A. Grigoras, C. Grigoras, M. Pedreira P Saiz, S. Schreiner ALICE Offline Week – June 2013.
THE C PROGRAMMING ENVIRONMENT. Four parts of C environment  Main menu  Editor status line and edit window  Compiler message window  “Hot Keys” quick.
Alberto Colla - CERN ALICE off-line week 1 Alberto Colla ALICE off-line week Cern, May 31, 2005 Table of contents: ● Summary of requirements ● Description.
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  There are many different.
Learning basic Unix command It 325 operating system.
Introduction to UNIX and Linux.  Written by Dennis Ritchie and Ken Thomsom at Bell Labs in 1969  Initially written in assembly language and a high-level.
 CSC 215 : Procedural Programming with C C Compilers.
Getting Started with Linux
Tutorial Six Linux Basics CompSci Semester Two 2016.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
CS1010: Intro Workshop.
Getting started with CentOS Linux
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
Basic aliensh S. Bagnasco, INFN Torino CNAF Nov 27-28, 2007.
Andy Wang Object Oriented Programming in C++ COP 3330
News on the CDB Framework
The Command Prompt Commands are the way to “do things” in Unix
Useful Linux Commands.
Off-line weekly meeting
Using Linux and Lab Setup OS Lab 1
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Intro to UNIX System and Homework 1
Web Programming Essentials:
Tutorial of Unix Command & shell scriptS 5027
Introduction Paul Flynn
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Module 6 Working with Files and Directories
Presentation transcript:

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 and Alignment grup)

Alice off-line meeting Alberto Colla Cern, October 3, 2005 Disclaimer This talk is intended to give the minimal set of instructions required to use the CDB access classes in a Grid environment The use of AliCDBGrid and AliEn is reserved to the users who have already implementation of calibration procedures using AliCDBLocal

Alice off-line meeting Alberto Colla Cern, October 3, 2005 Summary Disclaimer gShell client installation Grid file management with gShell Building Root with AliEn support Grid access with Root

Alice off-line meeting Alberto Colla Cern, October 3, 2005 gShell client installation Current gShell client version: noglobus, installed on /afs If /afs is not mounted, copy gShell noglobus folder locally, export GSHELL_ROOT with the local gShell path, and run the configuration script: #. $GSHELL_ROOT/bin/alien_apiservice-bootstrap # Export GSHELL_ROOT=/afs/cern.ch/alice/library/alien1/alien-2/ gShell/1.0.6-noglobus/i386/ If /afs is mounted, do: User has to be registered CERN and AliEn organisation (AFS password will be required)

Alice off-line meeting Alberto Colla Cern, October 3, 2005 Loading the gShell environment #. $GSHELL_ROOT/bin/alien_VO Run the alien_VO script: alien_VO does (among other things):  source $GSHELL_ROOT/etc/env_gbbox.sh (required for Grid access with Root)  export LD_LIBRARY_PATH=$GSHELL_ROOT/lib (where gliteUI library is)  connect to aliendb4.cern.ch CE  alias grid=‘. $GSHELL_ROOT/bin/alien_Switch’ grid switches the shell from local to grid mode (and vice versa)! When in grid-mode, unix executables ls, cp, mkdir etc… are set as alias of the corresponding AliEn commands: alien_ls, alien_cp, alien_mkdir … AliEn executables are in $GSHELL_ROOT/bin

Alice off-line meeting Alberto Colla Cern, October 3, 2005 Loading the gShell environment (2)

Alice off-line meeting Alberto Colla Cern, October 3, 2005 File management on Grid In Grid mode:  ls file: or ls alien: will redirect to local or AliEn paths respectively (by default, ls lists AliEn folder content).  whereis prints out the file’s GUID  most of the AliEn commands have the same behaviour as the corresponding Unix ones ( cd, pwd, mkdir, etc…); use rmdir to remove directories (also if they aren’t empty)  edit files with edit (set your favourite editor in $GSHELL_ROOT/bin/alien_edit!) Copying files from local to grid (and vice versa):  cp file: # cp file:/home/colla/file.root  For the moment use storage element ALICE::CERN::se01  S.E. specification can be skipped if alien_CLOSE_SE variable is defined: # export alien_CLOSE_SE=“ALICE::CERN::se01”

Alice off-line meeting Alberto Colla Cern, October 3, 2005 Building Root with AliEn support Check out Root v Configure Root enabling AliEn: # cd $ROOTSYS #./configure -–enable–alien ––with–alien-incdir=$GSHELL_ROOT/include ––with–alien–libdir=$GSHELL_ROOT/lib/ # make Compile with gcc 3.2.3! To check if AliEn support is enabled in Root: # root-config -–has-alien yes

Alice off-line meeting Alberto Colla Cern, October 3, 2005 Connection to the Grid with Root Run $GSHELL_ROOT/bin/alien_VO before entering Root (it sets the environment variables needed by Root) In Root: login to alien://aliendb4.cern.ch:9000 with TGrid::Connect() : root[] TGrid::Connect(“alien://aliendb4.cern.ch:9000”,”colla”); Url (“gridType://host:port”) User name  The library $ROOTSYS/lib/libRAliEn.so is loaded via TPluginManager class  The constructor of TAlien class is invoked  The class $GSHELL_ROOT/include/gliteUI.h is instantiated  GLiteUI::Connect(Host, Port, User) is called When TGrid::Connect() is called: If connection works a TGrid* gGrid global pointer is returned!

Alice off-line meeting Alberto Colla Cern, October 3, 2005 TGrid methods Grid file catalogue is handled with TGrid methods called by gGrid : char *currentFolder = gGrid->Pwd(); TGridResult *res = gGrid->Ls(“folderName”); for(int i=0; i GetEntries(); i++){ char *dirEntry = res->GetFileName(i); cout << “file = ” << dirEntry << endl; } gGrid->Cd(“folderName”); //Bool_t gGrid->Mkdir(“folderName”); //Bool_t gGrid->Rmdir(“folderName”); //Bool_t gGrid->Rm(“fileName”); //Bool_t... Returns TList of the directory entries Prints directory entries

Alice off-line meeting Alberto Colla Cern, October 3, 2005 Creating/accessing Root files in AliEn TFile *f = TFile::Open(“/alien/path/fileName?SE”,”option”); TFile *f =TFile::Open (“/alien/alice/cern.ch/user/c/colla/file.root?ALICE::CERN::se01”, ”CREATE”); example: Note:  “/alien/” ≡ “alien://”  TFile *f = TFile::Open(“/alien/file.root”) ≡ TAlienFile *f = new TAlienFile(“file.root”)  s.e. field can be avoided if the variable alien_CLOSE_SE is defined  currently it is not possible to list the content of a file with f->ls() !  It is however possible to get an object storeg in the file with f->Get(“objName”)