Hands on session: the AMGA Metadata Catalogue Riccardo Bruno - INFN Madrid, 07-11/05/2007.

Slides:



Advertisements
Similar presentations
EGRIS-1 E-infrastructure shared between Europe and Latin America Luciano Diaz ICN UNAM Mexico City, 24 October 2007 Hands on session: the.
Advertisements

FP7-INFRA Enabling Grids for E-sciencE EGEE Induction Grid training for users, Institute of Physics Belgrade, Serbia Sep. 19, 2008.
FILE TRANSFER PROTOCOL Short for File Transfer Protocol, the protocol for exchanging files over the Internet. FTP works in the same way as HTTP for transferring.
Working with Files How to create, view, copy, rename and print files.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 27 th, 2009 Essential Unix Commands.
Linux+ Guide to Linux Certification, Second Edition
CIS392 Sp 03Assign#11 CIS392 Text Processing, Retrieval, and Mining Spring 03 Instructor: Dr. Y. F. Brook Wu BOW toolkit:
File Management System The way a user or application may access files Programmer does not need to develop file management software You take files for granted.
Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh.
Embedded Programming and Robotics Lesson 13 Basic Linux 1.
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
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.
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
Learning basic Unix command IT 325 operating system.
COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #5  Files and directories in UNIX  Various types of files  File attributes  Notion of pathname  Commands.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
1 Lecture 2 Working with Files and Directories COP 3344 Introduction to UNIX.
If This Bar Is Light Blue – It Is Info That You Should Read! Helpful Hint There Will Often Be A Colored Title Bar At The Top Of A Slide.
Linux+ Guide to Linux Certification, Second Edition
Copyright (c) by CNAPTICS Corporation. All rights reserved.1 INFO Oracle Database 11g: Administration II Presented By: Marc S. Paller,
R BRO SOLUTIONS INC. ©2006 RBRO Solutions Inc., All Rights Reserved Systems Design Consultants Document Migration into WorkSite.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
File Permission and Access. Module 6 File Permission and Access ♦ Introduction Linux is a multi-user system where users can assign different access permission.
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.
INFSO-RI Enabling Grids for E-sciencE AMGA Metadata Server - Metadata Services in gLite (+ ARDA DB Deployment Plans with Experiments)
Managing Files. Module 5 Managing Files ♦ Introduction “On a Linux system, everything is a file; if something is not a file, it is a process.” ♦ Topics.
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
EGRIS-1 E-infrastructure shared between Europe and Latin America AMGA Metadata Services: examples and usage scenarios Tony Calanducci INFN.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
FTP Server API Implementing the FTP Server Registering FTP Command Callbacks Data and Control Port Close Callbacks Other Server Calls.
EGEE-II INFSO-RI Enabling Grids for E-sciencE Hands on session: the AMGA Metadata Catalogue.
 Registry itself is easy and straightforward in implementation  The objects of registry are actually complicated to store and manage  Objects of Registry.
E X C E E D I N G E X P E C T A T I O N S Basic LINUX Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Directory structure:
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Basic of UNIX For fresh members of SPARCS
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.
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
Managing Data DIRAC Project. Outline  Data management components  Storage Elements  File Catalogs  DIRAC conventions for user data  Data operation.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
Learning basic Unix command It 325 operating system.
FP6−2004−Infrastructures−6-SSA Enabling Grids for E-sciencE The AMGA Metadata Catalog Introduction and hands-on exercises Nuno Santos.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Programming for the Web MySQL Command Line Using PHP with MySQL Dónal Mulligan BSc MA
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) AMGA metadata catalogue and high level API Andrea Cortellese
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) gLite AMGA Riccardo Bruno
Linux Filesystem Management
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.
Chapter 11 Command-Line Master Class
Security and Replication of Metadata with AMGA
Java API del Logical File Catalog (LFC)
Play Framework: Introduction
Some Linux Commands.
Useful Linux Commands.
AMGA Web Interface Salvatore Scifo INFN sez. Catania
Hands-On Session: Data Management
Riccardo Bruno, Salvatore Scifo gLite - Tutorial Catania, dd.mm.yyyy
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Operating Systems and Using Linux
Tutorial of Unix Command & shell scriptS 5027
The Unix File System.
AMGA Web Interface Vincenzo Milazzo
Module 6 Working with Files and Directories
Lab 2: Terminal Basics.
Presentation transcript:

Hands on session: the AMGA Metadata Catalogue Riccardo Bruno - INFN Madrid, 07-11/05/2007

Access the Metadata Catalog Copy a template of config file for the MDC: $ cp $GLITE_LOCATION/etc/mdclient.config \ $HOME/.mdclient.config Start up the Metadata Catalog Client with $ mdclient Once logged in, you can list the available commands, typing help. Connected to amga.ct.infn.it:8822 ARDA Metadata Server Query> help >> >help [topic]< >> >Displays help on a command or a topic.< >> >Valid topics are: help metadata metadata-optional directory entry group acl index schema sequence user view ticket commands< Commands are grouped by topic. You can get the list of valid commands for each topic, typing: help [topic] Example: help entry

AMGA: List of topics (HELP) Valid topics:  help  metadata  metadata-optional  directory  replication  entry  group  acl  index  schema  sequence  user  view  ticket  commands

mdclient: Generic Commands >> createdir [options] Make a new folder. It can inherit the schema assosciated to the upper level folder >> rm pattern Remove items corresponding to the given pattern >> link Make a link to another file or to a external URL >> dir List the content of a directory >> listentries List the items (not the collections) of a directory >> stat Show the statistic information about a directory >> chown Changhe the ownership of a file or a directory >> chmod Change the access rights to a file or a directory >> rmdir Remove a directory >> dump Make a recursive dump startung from a given directory, (the default is: ‘/’)

MDC directory related commands Browse the contents of a directory  dir [path] / ls [path] Returns the name of all subdirectories and files in the given path or in the current directory if not specified Print the current working directory  pwd Change the current working directory  cd directory Example: cd /gilda/madrid Directory creation  createdir /parentdir/dir Creates the directory dir if it does not yet exist but parentdir already does Example: createdir /gilda/Madrid/madridXX (XX=01…40) Directory removal  rmdir path Removes the directory given by path

MDC: Handling attributes Schema population  addattr dir attr type Adds a new attribute to the schema of a directory. Type is the name of an SQL datatype which will translated (if necessary) into a data type understood by the back end DB. Examples of valid datatypes are int, float, varchar(n), timestamp, text, numeric(p,s) Examples: addattr /gilda/Madrid/madridXX id int addattr /gilda/Madrid/madridXX name varchar(32) addattr /gilda/Madrid/madridXX remark varchar(128) Attribute listing  listattr path Returns a list of all attributes of the given file/direcory Attribute Removal  removeattr dir attribute Removes an attribute from a directory if it is not used by any entry in the directory

MDC: managing entries Entry creation  addentry entry (attribute value)+ Add a new entry and initializes some attributes Example: addentry /gilda/Madrid/madridXX/entry_01 id 1 name ‘ name 01 ’ remark ‘ remark of entry 01 ’ Setting attribute values  setattr entry (attribute value)+ Sets one or more attributes of an entry to given values Example: setattr /gilda/Madrid/madridXX/entry_01 id 100 Getting attribute values  getattr pattern (attribute)+ Returns the entries and all the attributes for every file matching pattern Example: getattr /gilda/Madrid/madridXX/* name Entry deletion  rm pattern Removes all entries matching pattern Example: rm /gilda/ … /entry_*

Metadata Queries  find pattern ‘ query_condition ’ Returns all entries matching pattern for which query_condition is true Examples: find /gilda/Madrid/madridXX ‘ id > 10 ’ find /gilda/Madrid/madridXX ‘ like(name, “ P% ” ) ’ find /gilda/Madrid/madridXX ‘ like(name, “ P% ” ) AND id > 10 ’  selectattr attr... condition Returns the values of given attributes for all files matching condition Example: cd /gilda/Madrid/madrid selectattr.:id.:name ‘ id > 10'

Hands-on Session Exercise: Log into the Metadata Catalog Create a directory with your surname into the /grid/gilda/Madrid/madridXX directory Add some attributes (id int, name varchar(32), remark varchar(128)) to the directory just created Add some entries, you may use any name or the LFNs you uploaded and registered into the File Catalog during the DMS hands-on session Fill the attribute fields for the inserted entries Look for the entries having ‘id’ > 50

Solution Query> createdir madrid40 Query> pwd >> /gilda/Madrid/madrid40/ Query> addattr /gilda/Madrid/madrid40/ id int Query> addattr /gilda/Madrid/madrid40/ name varchar(32) Query> addattr /gilda/Madrid/madrid40/ remark varchar(128) Query> addentry /gilda/Madrid/madrid40/entry_01 id 1 name ‘ name 1' remark ‘ remark 1 ‘ … Query> addentry /gilda/Madrid/madrid40/entry_0n id n name ‘ name n' remark ‘ remark n ‘ Query> getattr /gilda/Madrid/madrid40/* id name remark … Query> find /gilda/Madrid/madrid40/ ‘ id >= k ‘ (k=1 … n)

GILDA wiki pages Introduction to AMGA  AMGA Advanced usage 

Questions