SlideShare a Scribd company logo
Mitglied der Helmholtz-Gemeinschaft




                                      The UNICORE Command
                                      Line Client
                                      07.07.2009   Rebecca Breu
UNICORE Clients
     Several clients for different purposes:
       Rich Client: Eclipse-based graphical client for complex tasks
       UCC: Command line client
       GPE Application Client: Easy-to-use graphical client for
       simple tasks
       Portal Clients: Web based client to use with a browser




07.07.2009                                                             Slide 2
UNICORE Clients
     Clients are . . .
        intuitive
        Java based → platform independent
        easy to install

     Prerequisites for users:
        Sun Java 1.5
        A user certificate

     Outline
             This session: Single jobs via ucc
             Next session: Workflow jobs via Eclipse Client

07.07.2009                                                   Slide 3
Basic Client Configuration

             Create a password-protected keystore that holds all keys
             needed
             Add keys to keystore:
               User’s private and public key
               Public keys of trusted CAs (must trust signer of involved
               gateway keys!)
             Add URI of global registry




07.07.2009                                                                 Slide 4
Job excecution and file transfer

             For each job, an own directory is created on the target system
             (uspace)
             Job executes within uspace directory
             File import: File tranfer from somewhere (e.g. user’s local
             computer) into uspace
             File export: File tranfer from uspace to somewhere (e.g.
             user’s local computer)
             Every input file a job needs has to be imported
             Every output file a user wants to see has to be exported
             Applications (GridBeans) import and export some files
             autmatically

07.07.2009                                                                    Slide 5
Basic usage of UCC

     Connect to UNICORE site:
      > ucc connect
      You can access 2 target system ( s ).

     For every ucc command, you can use -v for verbose output:
      > ucc connect -v

     Getting help:
      > ucc help

     Help for each ucc command with -h:
      > ucc connect -h


07.07.2009                                                       Slide 6
Synchronous Job Submission

     Use run command to submit a job:

      > ucc run ucc -1.1/ samples / date . u
      RUNNING
      SUCCESSFUL exit code : 0
      / tmp / c61e1d7c -92 d4 -4 be0 -87 f8 -6 a7dddc4c728 . stdout
      / tmp / c61e1d7c -92 d4 -4 be0 -87 f8 -6 a7dddc4c728 . stderr
      / tmp / c61e1d7c -92 d4 -4 be0 -87 f8 -6 a7dddc4c728 . properties

             UCC waits until job is finished
             Output files are fetched automatically
     Use -a option for asynchronous job submission → UCC returns
     prompt after submit

07.07.2009                                                         Slide 7
UCC job format: simple example


     UCC jobs are given in JSON format.

     Simple example: All-time favourite date application:
      # Simple Date job

      {
             ApplicationName : Date ,
             Version : 1.0 # Optional
      }
     Date takes no input and produces stdout and stderr.



07.07.2009                                                  Slide 8
UCC job format: file imports and export

     Example: Script job that produces additional file output.txt:
      {
             ApplicationName : Bash shell ,
             Environment : [ " SOURCE = input . sh " ] ,
             Imports : [ { File : " / home / rbreu / myscript . sh " ,
                           To : input . sh } ] ,
             # If script produces output ( optional ):
             Exports : [ { File : output . txt ,
                           To : output . txt } ]
      }

             File import from local machine to job’s working directory
             File export from job’s working directory to local machine


07.07.2009                                                               Slide 9
The Bash Application in the IDB

     Recall: This is how the Bash Application has been defined on
     server side:
      < idb:I DB Ap pl ic ation >
         < id b : Ap p l ic a t ionName > Bash shell </ idb:ApplicationName >
         < i d b : A p p l i c a t ion Ve rs ion > 3.1.16 </ i db :Ap pl ic at ion Ve rs ion >
         < js d l : P O S I X A p pli catio n xmlns:jsdl = " http: // schemas . ggf . or
             < jsdl:Executable >/ bin / bash </ jsdl:Executable >
             < jsdl:Argument > -- debugger $ DEBUG ? </ jsdl:Argument >
             < jsdl:Argument > -v $ VERBOSE ? </ jsdl:Argument >
             < jsdl:Argument >$ ARGUMENTS ? </ jsdl:Argument >
             < jsdl:Argument >$ SOURCE ? </ jsdl:Argument >
         </ j s d l : P O S I X A ppli catio n >
      </ idb :I DB Ap pl ic ation >



07.07.2009                                                                          Slide 10
Specify Resources

      {
             ApplicationName : Date ,

             Resources : {
               Memory : 268435456 , # per CPU in bytes
               Runtime : 86400 , # per CPU in seconds
               Nodes : 3 ,
               CPUs : 64 , # per node

                 # Custom resources ( site - dependent !):
                 S t ac k L im i t Pe r T hr e a d : 262144
             }
      }
     Please be sparing if you try that here at ISSGC ;-)

07.07.2009                                                    Slide 11
Data management


     List a remote directory:
      > ucc ls u6 :// GILDA - CATANIA / home
      . ssh
      . bash_history
      mydata

     Copy files between local and remote machine:
      > ucc get - file -s u6 :// GILDA - CATANIA / home / mydata 
            -t mydata
      > ucc put - file -s mydata2 
            -t u6 :// GILDA - CATANIA / home / mydata2



07.07.2009                                                    Slide 12
Batch Processing


     Use batch command to submit all files within a directory:
      > ucc batch -i / my / dir /

             UCC returns when all jobs are finished
             Output files are fetched automatically
     With -f option, ucc waits for more files to be copied in that
     directory:
      > ucc batch -f -i / my / dir /




07.07.2009                                                          Slide 13
UCC from within Emacs




                            UCC commands in
                            Emacs
                            Output highlighting
                            Clickable links in
                            output

                          See ucc-1.1.1/extras/




07.07.2009                                        Slide 14
Advanced usage: Groovy scripting
     Use groovy scripting to automatetasks, implement custom
     commands, . . .

     Simple example: Delete all your jobs
      import de . fzj . unicore . uas . client .*;

      def lister =
        new de . fzj . unicore . ucc . helpers . T a r g e t S y s t e m L i s t e r ( registry )

      lister . each {
          it . jobs . each {
                 messageWriter . message " Job at " + it . address . stringValue
                 new JobClient ( it . address . stringValue , it ,
                                 s e c u r i t y P r o p e r t i e s ). destroy ()
          }
      }

     Run with ucc run-groovy -f delete.groovy
07.07.2009                                                                                  Slide 15
More information


             Information for the practical sessions:
             www.fz-juelich.de/jsc/unicore/ISSGC09/
             UNICORE Website: www.unicore.eu/
             UCC Documentation:
             www.unicore.eu/documentation/manuals/unicore6/ucc/
             UCC Scripting with Groovy:
             http://www.unicore.eu/documentation/files/ucc groovy.pdf
             Mailing list: unicore-support@lists.sf.net
     More job examples and Groovy examples can be found in the ucc
     package.


07.07.2009                                                             Slide 16

More Related Content

What's hot

oVirt 3.6 Deep Dive: Refresh LUN size
oVirt 3.6 Deep Dive: Refresh LUN sizeoVirt 3.6 Deep Dive: Refresh LUN size
oVirt 3.6 Deep Dive: Refresh LUN size
Freddy Rolland
 
Optimization_of_Virtual_Machines_for_High_Performance
Optimization_of_Virtual_Machines_for_High_PerformanceOptimization_of_Virtual_Machines_for_High_Performance
Optimization_of_Virtual_Machines_for_High_Performance
StorPool Storage
 
Tungsten University: MySQL Multi-Master Operations Made Simple With Tungsten ...
Tungsten University: MySQL Multi-Master Operations Made Simple With Tungsten ...Tungsten University: MySQL Multi-Master Operations Made Simple With Tungsten ...
Tungsten University: MySQL Multi-Master Operations Made Simple With Tungsten ...
Continuent
 
Overview of kubernetes network functions
Overview of kubernetes network functionsOverview of kubernetes network functions
Overview of kubernetes network functions
HungWei Chiu
 
Writing the Container Network Interface(CNI) plugin in golang
Writing the Container Network Interface(CNI) plugin in golangWriting the Container Network Interface(CNI) plugin in golang
Writing the Container Network Interface(CNI) plugin in golang
HungWei Chiu
 
Gdeploy 2.0
Gdeploy 2.0Gdeploy 2.0
Gdeploy 2.0
Sachidananda Urs
 
Rails Conf Europe 2007 - Utilizing Amazon S3 and EC2 in Rails
Rails Conf Europe 2007 - Utilizing Amazon S3 and EC2 in RailsRails Conf Europe 2007 - Utilizing Amazon S3 and EC2 in Rails
Rails Conf Europe 2007 - Utilizing Amazon S3 and EC2 in Rails
Jonathan Weiss
 
Leases and-caching final
Leases and-caching finalLeases and-caching final
Leases and-caching final
Gluster.org
 
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Gluster.org
 
Running Legacy Applications with Containers
Running Legacy Applications with ContainersRunning Legacy Applications with Containers
Running Legacy Applications with Containers
LinuxCon ContainerCon CloudOpen China
 
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vosOSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
NETWAYS
 
Web Performance Optimization with HTTP/3
Web Performance Optimization with HTTP/3Web Performance Optimization with HTTP/3
Web Performance Optimization with HTTP/3
SangJin Kang
 
Improving Development and Deployment with Docker
Improving Development and Deployment with DockerImproving Development and Deployment with Docker
Improving Development and Deployment with Docker
Irfad Razick
 
Mm sys 2013-demo
Mm sys 2013-demoMm sys 2013-demo
Mm sys 2013-demo
Cyril Concolato
 
Meetup RomaJS - introduzione interattiva a Node.js - Luca Lanziani - Codemoti...
Meetup RomaJS - introduzione interattiva a Node.js - Luca Lanziani - Codemoti...Meetup RomaJS - introduzione interattiva a Node.js - Luca Lanziani - Codemoti...
Meetup RomaJS - introduzione interattiva a Node.js - Luca Lanziani - Codemoti...
Codemotion
 
Developing apps and_integrating_with_gluster_fs_-_libgfapi
Developing apps and_integrating_with_gluster_fs_-_libgfapiDeveloping apps and_integrating_with_gluster_fs_-_libgfapi
Developing apps and_integrating_with_gluster_fs_-_libgfapi
Gluster.org
 
re7jweiss
re7jweissre7jweiss
re7jweiss
guest6850dd
 
Streaming of SVG animations on the Web
Streaming of SVG animations on the WebStreaming of SVG animations on the Web
Streaming of SVG animations on the Web
Cyril Concolato
 
Gluster intro-tdose
Gluster intro-tdoseGluster intro-tdose
Gluster intro-tdose
Gluster.org
 
OpenNebulaConf 2016 - Network automation with VR by Karsten Nielsen, Unity Te...
OpenNebulaConf 2016 - Network automation with VR by Karsten Nielsen, Unity Te...OpenNebulaConf 2016 - Network automation with VR by Karsten Nielsen, Unity Te...
OpenNebulaConf 2016 - Network automation with VR by Karsten Nielsen, Unity Te...
OpenNebula Project
 

What's hot (20)

oVirt 3.6 Deep Dive: Refresh LUN size
oVirt 3.6 Deep Dive: Refresh LUN sizeoVirt 3.6 Deep Dive: Refresh LUN size
oVirt 3.6 Deep Dive: Refresh LUN size
 
Optimization_of_Virtual_Machines_for_High_Performance
Optimization_of_Virtual_Machines_for_High_PerformanceOptimization_of_Virtual_Machines_for_High_Performance
Optimization_of_Virtual_Machines_for_High_Performance
 
Tungsten University: MySQL Multi-Master Operations Made Simple With Tungsten ...
Tungsten University: MySQL Multi-Master Operations Made Simple With Tungsten ...Tungsten University: MySQL Multi-Master Operations Made Simple With Tungsten ...
Tungsten University: MySQL Multi-Master Operations Made Simple With Tungsten ...
 
Overview of kubernetes network functions
Overview of kubernetes network functionsOverview of kubernetes network functions
Overview of kubernetes network functions
 
Writing the Container Network Interface(CNI) plugin in golang
Writing the Container Network Interface(CNI) plugin in golangWriting the Container Network Interface(CNI) plugin in golang
Writing the Container Network Interface(CNI) plugin in golang
 
Gdeploy 2.0
Gdeploy 2.0Gdeploy 2.0
Gdeploy 2.0
 
Rails Conf Europe 2007 - Utilizing Amazon S3 and EC2 in Rails
Rails Conf Europe 2007 - Utilizing Amazon S3 and EC2 in RailsRails Conf Europe 2007 - Utilizing Amazon S3 and EC2 in Rails
Rails Conf Europe 2007 - Utilizing Amazon S3 and EC2 in Rails
 
Leases and-caching final
Leases and-caching finalLeases and-caching final
Leases and-caching final
 
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
 
Running Legacy Applications with Containers
Running Legacy Applications with ContainersRunning Legacy Applications with Containers
Running Legacy Applications with Containers
 
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vosOSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
 
Web Performance Optimization with HTTP/3
Web Performance Optimization with HTTP/3Web Performance Optimization with HTTP/3
Web Performance Optimization with HTTP/3
 
Improving Development and Deployment with Docker
Improving Development and Deployment with DockerImproving Development and Deployment with Docker
Improving Development and Deployment with Docker
 
Mm sys 2013-demo
Mm sys 2013-demoMm sys 2013-demo
Mm sys 2013-demo
 
Meetup RomaJS - introduzione interattiva a Node.js - Luca Lanziani - Codemoti...
Meetup RomaJS - introduzione interattiva a Node.js - Luca Lanziani - Codemoti...Meetup RomaJS - introduzione interattiva a Node.js - Luca Lanziani - Codemoti...
Meetup RomaJS - introduzione interattiva a Node.js - Luca Lanziani - Codemoti...
 
Developing apps and_integrating_with_gluster_fs_-_libgfapi
Developing apps and_integrating_with_gluster_fs_-_libgfapiDeveloping apps and_integrating_with_gluster_fs_-_libgfapi
Developing apps and_integrating_with_gluster_fs_-_libgfapi
 
re7jweiss
re7jweissre7jweiss
re7jweiss
 
Streaming of SVG animations on the Web
Streaming of SVG animations on the WebStreaming of SVG animations on the Web
Streaming of SVG animations on the Web
 
Gluster intro-tdose
Gluster intro-tdoseGluster intro-tdose
Gluster intro-tdose
 
OpenNebulaConf 2016 - Network automation with VR by Karsten Nielsen, Unity Te...
OpenNebulaConf 2016 - Network automation with VR by Karsten Nielsen, Unity Te...OpenNebulaConf 2016 - Network automation with VR by Karsten Nielsen, Unity Te...
OpenNebulaConf 2016 - Network automation with VR by Karsten Nielsen, Unity Te...
 

Similar to Session11 Ucc Intro

Kubernetes laravel and kubernetes
Kubernetes   laravel and kubernetesKubernetes   laravel and kubernetes
Kubernetes laravel and kubernetes
William Stewart
 
Scaling Docker Containers using Kubernetes and Azure Container Service
Scaling Docker Containers using Kubernetes and Azure Container ServiceScaling Docker Containers using Kubernetes and Azure Container Service
Scaling Docker Containers using Kubernetes and Azure Container Service
Ben Hall
 
Docker
DockerDocker
From development environments to production deployments with Docker, Compose,...
From development environments to production deployments with Docker, Compose,...From development environments to production deployments with Docker, Compose,...
From development environments to production deployments with Docker, Compose,...
Jérôme Petazzoni
 
How to create your own hack environment
How to create your own hack environmentHow to create your own hack environment
How to create your own hack environment
Sumedt Jitpukdebodin
 
Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
 Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2   Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
Adil Khan
 
Learning Docker with Thomas
Learning Docker with ThomasLearning Docker with Thomas
Learning Docker with Thomas
Thomas Tong, FRM, PMP
 
How to Build & Use OpenCL on OpenCV & Android NDK
How to Build & Use OpenCL on OpenCV & Android NDKHow to Build & Use OpenCL on OpenCV & Android NDK
Network Automation Tools
Network Automation ToolsNetwork Automation Tools
Network Automation Tools
Edwin Beekman
 
Android crash debugging
Android crash debuggingAndroid crash debugging
Android crash debugging
Ashish Agrawal
 
15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx
15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx
15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx
felicidaddinwoodie
 
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day ThailandCI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
Troublemaker Khunpech
 
(Declarative) Jenkins Pipelines
(Declarative) Jenkins Pipelines(Declarative) Jenkins Pipelines
(Declarative) Jenkins Pipelines
Steffen Gebert
 
Getting started docker notes
Getting started docker notesGetting started docker notes
Getting started docker notes
AJAY NAYAK
 
k8s practice 2023.pptx
k8s practice 2023.pptxk8s practice 2023.pptx
k8s practice 2023.pptx
wonyong hwang
 
A complete guide to Node.js
A complete guide to Node.jsA complete guide to Node.js
A complete guide to Node.js
Prabin Silwal
 
NFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center OperationsNFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center Operations
Cumulus Networks
 
MattsonTutorialSC14.pptx
MattsonTutorialSC14.pptxMattsonTutorialSC14.pptx
MattsonTutorialSC14.pptx
gopikahari7
 
LoCloud - D3.1: Operational SaaS Test lab
LoCloud -  D3.1: Operational SaaS Test labLoCloud -  D3.1: Operational SaaS Test lab
LoCloud - D3.1: Operational SaaS Test lab
locloud
 
Open stack nova reverse engineer
Open stack nova reverse engineerOpen stack nova reverse engineer
Open stack nova reverse engineer
Vietnam Open Infrastructure User Group
 

Similar to Session11 Ucc Intro (20)

Kubernetes laravel and kubernetes
Kubernetes   laravel and kubernetesKubernetes   laravel and kubernetes
Kubernetes laravel and kubernetes
 
Scaling Docker Containers using Kubernetes and Azure Container Service
Scaling Docker Containers using Kubernetes and Azure Container ServiceScaling Docker Containers using Kubernetes and Azure Container Service
Scaling Docker Containers using Kubernetes and Azure Container Service
 
Docker
DockerDocker
Docker
 
From development environments to production deployments with Docker, Compose,...
From development environments to production deployments with Docker, Compose,...From development environments to production deployments with Docker, Compose,...
From development environments to production deployments with Docker, Compose,...
 
How to create your own hack environment
How to create your own hack environmentHow to create your own hack environment
How to create your own hack environment
 
Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
 Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2   Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
Recipe to build open splice dds 6.3.xxx Hello World example over Qt 5.2
 
Learning Docker with Thomas
Learning Docker with ThomasLearning Docker with Thomas
Learning Docker with Thomas
 
How to Build & Use OpenCL on OpenCV & Android NDK
How to Build & Use OpenCL on OpenCV & Android NDKHow to Build & Use OpenCL on OpenCV & Android NDK
How to Build & Use OpenCL on OpenCV & Android NDK
 
Network Automation Tools
Network Automation ToolsNetwork Automation Tools
Network Automation Tools
 
Android crash debugging
Android crash debuggingAndroid crash debugging
Android crash debugging
 
15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx
15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx
15LLP108_Demo4_LedBlinking.pdf1. Introduction In D.docx
 
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day ThailandCI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
 
(Declarative) Jenkins Pipelines
(Declarative) Jenkins Pipelines(Declarative) Jenkins Pipelines
(Declarative) Jenkins Pipelines
 
Getting started docker notes
Getting started docker notesGetting started docker notes
Getting started docker notes
 
k8s practice 2023.pptx
k8s practice 2023.pptxk8s practice 2023.pptx
k8s practice 2023.pptx
 
A complete guide to Node.js
A complete guide to Node.jsA complete guide to Node.js
A complete guide to Node.js
 
NFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center OperationsNFD9 - Matt Peterson, Data Center Operations
NFD9 - Matt Peterson, Data Center Operations
 
MattsonTutorialSC14.pptx
MattsonTutorialSC14.pptxMattsonTutorialSC14.pptx
MattsonTutorialSC14.pptx
 
LoCloud - D3.1: Operational SaaS Test lab
LoCloud -  D3.1: Operational SaaS Test labLoCloud -  D3.1: Operational SaaS Test lab
LoCloud - D3.1: Operational SaaS Test lab
 
Open stack nova reverse engineer
Open stack nova reverse engineerOpen stack nova reverse engineer
Open stack nova reverse engineer
 

More from ISSGC Summer School

Session 58 - Cloud computing, virtualisation and the future
Session 58 - Cloud computing, virtualisation and the future Session 58 - Cloud computing, virtualisation and the future
Session 58 - Cloud computing, virtualisation and the future
ISSGC Summer School
 
Session 58 :: Cloud computing, virtualisation and the future Speaker: Ake Edlund
Session 58 :: Cloud computing, virtualisation and the future Speaker: Ake EdlundSession 58 :: Cloud computing, virtualisation and the future Speaker: Ake Edlund
Session 58 :: Cloud computing, virtualisation and the future Speaker: Ake Edlund
ISSGC Summer School
 
Session 50 - High Performance Computing Ecosystem in Europe
Session 50 - High Performance Computing Ecosystem in EuropeSession 50 - High Performance Computing Ecosystem in Europe
Session 50 - High Performance Computing Ecosystem in Europe
ISSGC Summer School
 
Integrating Practical2009
Integrating Practical2009Integrating Practical2009
Integrating Practical2009
ISSGC Summer School
 
Session 49 Practical Semantic Sticky Note
Session 49 Practical Semantic Sticky NoteSession 49 Practical Semantic Sticky Note
Session 49 Practical Semantic Sticky Note
ISSGC Summer School
 
Departure
DepartureDeparture
Session 48 - Principles of Semantic metadata management
Session 48 - Principles of Semantic metadata management Session 48 - Principles of Semantic metadata management
Session 48 - Principles of Semantic metadata management
ISSGC Summer School
 
Session 49 - Semantic metadata management practical
Session 49 - Semantic metadata management practical Session 49 - Semantic metadata management practical
Session 49 - Semantic metadata management practical
ISSGC Summer School
 
Session 46 - Principles of workflow management and execution
Session 46 - Principles of workflow management and execution Session 46 - Principles of workflow management and execution
Session 46 - Principles of workflow management and execution
ISSGC Summer School
 
Session 37 - Intro to Workflows, API's and semantics
Session 37 - Intro to Workflows, API's and semantics Session 37 - Intro to Workflows, API's and semantics
Session 37 - Intro to Workflows, API's and semantics
ISSGC Summer School
 
Session 43 :: Accessing data using a common interface: OGSA-DAI as an example
Session 43 :: Accessing data using a common interface: OGSA-DAI as an exampleSession 43 :: Accessing data using a common interface: OGSA-DAI as an example
Session 43 :: Accessing data using a common interface: OGSA-DAI as an example
ISSGC Summer School
 
Session 40 : SAGA Overview and Introduction
Session 40 : SAGA Overview and Introduction Session 40 : SAGA Overview and Introduction
Session 40 : SAGA Overview and Introduction
ISSGC Summer School
 
Session 36 - Engage Results
Session 36 - Engage ResultsSession 36 - Engage Results
Session 36 - Engage Results
ISSGC Summer School
 
Session 23 - Intro to EGEE-III
Session 23 - Intro to EGEE-IIISession 23 - Intro to EGEE-III
Session 23 - Intro to EGEE-III
ISSGC Summer School
 
Session 33 - Production Grids
Session 33 - Production GridsSession 33 - Production Grids
Session 33 - Production Grids
ISSGC Summer School
 
Social Program
Social ProgramSocial Program
Social Program
ISSGC Summer School
 
Session29 Arc
Session29 ArcSession29 Arc
Session29 Arc
ISSGC Summer School
 
Session 24 - Distribute Data and Metadata Management with gLite
Session 24 - Distribute Data and Metadata Management with gLiteSession 24 - Distribute Data and Metadata Management with gLite
Session 24 - Distribute Data and Metadata Management with gLite
ISSGC Summer School
 
Session 23 - gLite Overview
Session 23 - gLite OverviewSession 23 - gLite Overview
Session 23 - gLite Overview
ISSGC Summer School
 
General Introduction to technologies that will be seen in the school
General Introduction to technologies that will be seen in the school General Introduction to technologies that will be seen in the school
General Introduction to technologies that will be seen in the school
ISSGC Summer School
 

More from ISSGC Summer School (20)

Session 58 - Cloud computing, virtualisation and the future
Session 58 - Cloud computing, virtualisation and the future Session 58 - Cloud computing, virtualisation and the future
Session 58 - Cloud computing, virtualisation and the future
 
Session 58 :: Cloud computing, virtualisation and the future Speaker: Ake Edlund
Session 58 :: Cloud computing, virtualisation and the future Speaker: Ake EdlundSession 58 :: Cloud computing, virtualisation and the future Speaker: Ake Edlund
Session 58 :: Cloud computing, virtualisation and the future Speaker: Ake Edlund
 
Session 50 - High Performance Computing Ecosystem in Europe
Session 50 - High Performance Computing Ecosystem in EuropeSession 50 - High Performance Computing Ecosystem in Europe
Session 50 - High Performance Computing Ecosystem in Europe
 
Integrating Practical2009
Integrating Practical2009Integrating Practical2009
Integrating Practical2009
 
Session 49 Practical Semantic Sticky Note
Session 49 Practical Semantic Sticky NoteSession 49 Practical Semantic Sticky Note
Session 49 Practical Semantic Sticky Note
 
Departure
DepartureDeparture
Departure
 
Session 48 - Principles of Semantic metadata management
Session 48 - Principles of Semantic metadata management Session 48 - Principles of Semantic metadata management
Session 48 - Principles of Semantic metadata management
 
Session 49 - Semantic metadata management practical
Session 49 - Semantic metadata management practical Session 49 - Semantic metadata management practical
Session 49 - Semantic metadata management practical
 
Session 46 - Principles of workflow management and execution
Session 46 - Principles of workflow management and execution Session 46 - Principles of workflow management and execution
Session 46 - Principles of workflow management and execution
 
Session 37 - Intro to Workflows, API's and semantics
Session 37 - Intro to Workflows, API's and semantics Session 37 - Intro to Workflows, API's and semantics
Session 37 - Intro to Workflows, API's and semantics
 
Session 43 :: Accessing data using a common interface: OGSA-DAI as an example
Session 43 :: Accessing data using a common interface: OGSA-DAI as an exampleSession 43 :: Accessing data using a common interface: OGSA-DAI as an example
Session 43 :: Accessing data using a common interface: OGSA-DAI as an example
 
Session 40 : SAGA Overview and Introduction
Session 40 : SAGA Overview and Introduction Session 40 : SAGA Overview and Introduction
Session 40 : SAGA Overview and Introduction
 
Session 36 - Engage Results
Session 36 - Engage ResultsSession 36 - Engage Results
Session 36 - Engage Results
 
Session 23 - Intro to EGEE-III
Session 23 - Intro to EGEE-IIISession 23 - Intro to EGEE-III
Session 23 - Intro to EGEE-III
 
Session 33 - Production Grids
Session 33 - Production GridsSession 33 - Production Grids
Session 33 - Production Grids
 
Social Program
Social ProgramSocial Program
Social Program
 
Session29 Arc
Session29 ArcSession29 Arc
Session29 Arc
 
Session 24 - Distribute Data and Metadata Management with gLite
Session 24 - Distribute Data and Metadata Management with gLiteSession 24 - Distribute Data and Metadata Management with gLite
Session 24 - Distribute Data and Metadata Management with gLite
 
Session 23 - gLite Overview
Session 23 - gLite OverviewSession 23 - gLite Overview
Session 23 - gLite Overview
 
General Introduction to technologies that will be seen in the school
General Introduction to technologies that will be seen in the school General Introduction to technologies that will be seen in the school
General Introduction to technologies that will be seen in the school
 

Recently uploaded

Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
TechSoup
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
Celine George
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
Observational Learning
Observational Learning Observational Learning
Observational Learning
sanamushtaq922
 
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGHKHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
shreyassri1208
 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
Kalna College
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
danielkiash986
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
Kalna College
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
nitinpv4ai
 
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
220711130083 SUBHASHREE RAKSHIT  Internet resources for social science220711130083 SUBHASHREE RAKSHIT  Internet resources for social science
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
Kalna College
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
Celine George
 
Creation or Update of a Mandatory Field is Not Set in Odoo 17
Creation or Update of a Mandatory Field is Not Set in Odoo 17Creation or Update of a Mandatory Field is Not Set in Odoo 17
Creation or Update of a Mandatory Field is Not Set in Odoo 17
Celine George
 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
Mohammad Al-Dhahabi
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
indexPub
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
ShwetaGawande8
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
 

Recently uploaded (20)

Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
Observational Learning
Observational Learning Observational Learning
Observational Learning
 
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGHKHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
KHUSWANT SINGH.pptx ALL YOU NEED TO KNOW ABOUT KHUSHWANT SINGH
 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
 
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
220711130083 SUBHASHREE RAKSHIT  Internet resources for social science220711130083 SUBHASHREE RAKSHIT  Internet resources for social science
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
 
Creation or Update of a Mandatory Field is Not Set in Odoo 17
Creation or Update of a Mandatory Field is Not Set in Odoo 17Creation or Update of a Mandatory Field is Not Set in Odoo 17
Creation or Update of a Mandatory Field is Not Set in Odoo 17
 
skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)skeleton System.pdf (skeleton system wow)
skeleton System.pdf (skeleton system wow)
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
 

Session11 Ucc Intro

  • 1. Mitglied der Helmholtz-Gemeinschaft The UNICORE Command Line Client 07.07.2009 Rebecca Breu
  • 2. UNICORE Clients Several clients for different purposes: Rich Client: Eclipse-based graphical client for complex tasks UCC: Command line client GPE Application Client: Easy-to-use graphical client for simple tasks Portal Clients: Web based client to use with a browser 07.07.2009 Slide 2
  • 3. UNICORE Clients Clients are . . . intuitive Java based → platform independent easy to install Prerequisites for users: Sun Java 1.5 A user certificate Outline This session: Single jobs via ucc Next session: Workflow jobs via Eclipse Client 07.07.2009 Slide 3
  • 4. Basic Client Configuration Create a password-protected keystore that holds all keys needed Add keys to keystore: User’s private and public key Public keys of trusted CAs (must trust signer of involved gateway keys!) Add URI of global registry 07.07.2009 Slide 4
  • 5. Job excecution and file transfer For each job, an own directory is created on the target system (uspace) Job executes within uspace directory File import: File tranfer from somewhere (e.g. user’s local computer) into uspace File export: File tranfer from uspace to somewhere (e.g. user’s local computer) Every input file a job needs has to be imported Every output file a user wants to see has to be exported Applications (GridBeans) import and export some files autmatically 07.07.2009 Slide 5
  • 6. Basic usage of UCC Connect to UNICORE site: > ucc connect You can access 2 target system ( s ). For every ucc command, you can use -v for verbose output: > ucc connect -v Getting help: > ucc help Help for each ucc command with -h: > ucc connect -h 07.07.2009 Slide 6
  • 7. Synchronous Job Submission Use run command to submit a job: > ucc run ucc -1.1/ samples / date . u RUNNING SUCCESSFUL exit code : 0 / tmp / c61e1d7c -92 d4 -4 be0 -87 f8 -6 a7dddc4c728 . stdout / tmp / c61e1d7c -92 d4 -4 be0 -87 f8 -6 a7dddc4c728 . stderr / tmp / c61e1d7c -92 d4 -4 be0 -87 f8 -6 a7dddc4c728 . properties UCC waits until job is finished Output files are fetched automatically Use -a option for asynchronous job submission → UCC returns prompt after submit 07.07.2009 Slide 7
  • 8. UCC job format: simple example UCC jobs are given in JSON format. Simple example: All-time favourite date application: # Simple Date job { ApplicationName : Date , Version : 1.0 # Optional } Date takes no input and produces stdout and stderr. 07.07.2009 Slide 8
  • 9. UCC job format: file imports and export Example: Script job that produces additional file output.txt: { ApplicationName : Bash shell , Environment : [ " SOURCE = input . sh " ] , Imports : [ { File : " / home / rbreu / myscript . sh " , To : input . sh } ] , # If script produces output ( optional ): Exports : [ { File : output . txt , To : output . txt } ] } File import from local machine to job’s working directory File export from job’s working directory to local machine 07.07.2009 Slide 9
  • 10. The Bash Application in the IDB Recall: This is how the Bash Application has been defined on server side: < idb:I DB Ap pl ic ation > < id b : Ap p l ic a t ionName > Bash shell </ idb:ApplicationName > < i d b : A p p l i c a t ion Ve rs ion > 3.1.16 </ i db :Ap pl ic at ion Ve rs ion > < js d l : P O S I X A p pli catio n xmlns:jsdl = " http: // schemas . ggf . or < jsdl:Executable >/ bin / bash </ jsdl:Executable > < jsdl:Argument > -- debugger $ DEBUG ? </ jsdl:Argument > < jsdl:Argument > -v $ VERBOSE ? </ jsdl:Argument > < jsdl:Argument >$ ARGUMENTS ? </ jsdl:Argument > < jsdl:Argument >$ SOURCE ? </ jsdl:Argument > </ j s d l : P O S I X A ppli catio n > </ idb :I DB Ap pl ic ation > 07.07.2009 Slide 10
  • 11. Specify Resources { ApplicationName : Date , Resources : { Memory : 268435456 , # per CPU in bytes Runtime : 86400 , # per CPU in seconds Nodes : 3 , CPUs : 64 , # per node # Custom resources ( site - dependent !): S t ac k L im i t Pe r T hr e a d : 262144 } } Please be sparing if you try that here at ISSGC ;-) 07.07.2009 Slide 11
  • 12. Data management List a remote directory: > ucc ls u6 :// GILDA - CATANIA / home . ssh . bash_history mydata Copy files between local and remote machine: > ucc get - file -s u6 :// GILDA - CATANIA / home / mydata -t mydata > ucc put - file -s mydata2 -t u6 :// GILDA - CATANIA / home / mydata2 07.07.2009 Slide 12
  • 13. Batch Processing Use batch command to submit all files within a directory: > ucc batch -i / my / dir / UCC returns when all jobs are finished Output files are fetched automatically With -f option, ucc waits for more files to be copied in that directory: > ucc batch -f -i / my / dir / 07.07.2009 Slide 13
  • 14. UCC from within Emacs UCC commands in Emacs Output highlighting Clickable links in output See ucc-1.1.1/extras/ 07.07.2009 Slide 14
  • 15. Advanced usage: Groovy scripting Use groovy scripting to automatetasks, implement custom commands, . . . Simple example: Delete all your jobs import de . fzj . unicore . uas . client .*; def lister = new de . fzj . unicore . ucc . helpers . T a r g e t S y s t e m L i s t e r ( registry ) lister . each { it . jobs . each { messageWriter . message " Job at " + it . address . stringValue new JobClient ( it . address . stringValue , it , s e c u r i t y P r o p e r t i e s ). destroy () } } Run with ucc run-groovy -f delete.groovy 07.07.2009 Slide 15
  • 16. More information Information for the practical sessions: www.fz-juelich.de/jsc/unicore/ISSGC09/ UNICORE Website: www.unicore.eu/ UCC Documentation: www.unicore.eu/documentation/manuals/unicore6/ucc/ UCC Scripting with Groovy: http://www.unicore.eu/documentation/files/ucc groovy.pdf Mailing list: unicore-support@lists.sf.net More job examples and Groovy examples can be found in the ucc package. 07.07.2009 Slide 16