COMP3019 Coursework - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

COMP3019 Coursework

Description:

To equip students to drive a lightweight grid implementation to solve a problem ... Unpack omii-client-3.4.2 zip/tar.gz file. Go to omii-client-3.4.2/client directory. ... – PowerPoint PPT presentation

Number of Views:44
Avg rating:3.0/5.0
Slides: 17
Provided by: stephen200
Category:

less

Transcript and Presenter's Notes

Title: COMP3019 Coursework


1
COMP3019 Coursework
  • Dr Stephen Crouch
  • s.crouch_at_omii.ac.uk
  • 19/03/09

2
Objectives
  • To equip students to drive a lightweight grid
    implementation to solve a problem that can
    benefit from using grid technology.
  • To develop an understanding of the basic
    mechanisms used to solve such problems.
  • To develop a general architectural and
    operational understanding of typical
    production-level grid software.
  • To develop the programming skills required to
    drive typical services on a production-level grid.

3
Overview
  • Part 1 m-grid
  • A lightweight grid to illustrate grid concepts in
    use
  • Develop a program, submit it to m-grid with input
    data, collect results
  • Part 2 Workflows in OMII
  • Install an OMII Client (Linux/Windows)
  • Develop a simple workflow using Grimoires and
    GridSAM APIs

4
Need Help?
  • OMII guides
  • Install guide
  • User guide
  • http//www.omii.ac.uk/ - Resources -gt
    Documentation (menu bar)
  • Myself s.crouch_at_omii.ac.uk
  • Coursework help lecture after Easter
  • Coursework resources
  • http//www.ecs.soton.ac.uk/stc/COMP3019/index.htm
    l

5
  • Part 1 m-grid

6
Some Pointers
  • Look at the other examples in m-grid
  • Applets can access files in their jar
  • Can include any file in jar using jar command
  • Applet can access it from within jar e.g.
  • InputStream in getClass().getResourceAsStream
    (ltfilename_in_jargt)
  • But must access it as a stream as above

7
  • Part 2 Workflows in OMII

8
Coursework
  • Objective to develop a simple workflow
  • Install an OMII Client (Linux/Windows)
  • Use Grimoires and GridSAM APIs to
  • Find GridSAM services using Grimoires
  • Select a service
  • Coordinate the submission and monitoring of a set
    of jobs on one GridSAM service
  • For coursework materials see http//www.ecs.soton
    .ac.uk/stc/COMP3019/index.html

9
Pre-Requisites
  • Pre-requisites
  • SuSE 9.0, RedHat or Windows XP/Vista
  • May work on other Linuxs but no exhaustive
    testing
  • Tested on undergrad Linux boxes (best option!)
  • Requires Java 5
  • JDK 1.5.0_01 (not a JRE!) 1.5.0_12
  • Not tested with earlier JDKs
  • Not compatible with Java 6 (yet)
  • Undergraduate labs recommended VPNs can cause
    problems

10
Preparation
  • Download OMII-UK Development Kit Client 3.4.2
    from coursework materials page
  • Install JDK 1.5.0_01-1.5.0_12 if required
  • http//java.sun.com/products/archive/j2se/5.0_12/i
    ndex.html
  • Linux undergrad machines have 1.5.0_01
  • Set JAVA_HOME environment variable. e.g.
  • Bash export JAVA_HOME/usr/local/jdk1.5.0_01
  • Win Con. Panel gt System gt Advanced gt Env.
    Variables

11
Install
  • Linux install recommended
  • Unpack omii-client-3.4.2 zip/tar.gz file
  • Go to omii-client-3.4.2/client directory
  • ./OMIIclientInstall.sh Linux
  • OMIIclientInstall.bat Windows
  • When it asks if you wish to install Commissioned
    Software components, enter no
  • Go to omii-client-3.4.2/managed_programme
    directory
  • ./OMIImanagedProgrammeInstall.sh Linux
  • ./OMIImanagedProgrammeInstall.bat Windows
  • Ensure you enter installation directory of where
    you installed client
  • Select none to deselect all components first
  • Select numbers for GridSAM 2.0.2 and Grimoires
    2.0.0 only

12
Servers
  • Check coursework materials page to get locations
    of servers
  • https//blade4.omii.ac.uk18443
  • https//blade4.omii.ac.uk28443
  • Dont use standard demo server for coursework
    (https//demo-3-4-0.omii.ac.uk18443)
  • Will only run sleep.jsdl!

13
CLI Example Submit to GridSAM Server
  • Ensure Java is on your path
  • Windows/Linux
  • Type gt cd ltomii_client_homegt/gridsam/bin
  • Submit to GridSAM server (one line)
  • gt gridsam-submit s https//blade4.omii.ac.uk184
    43/gridsam/services/gridsam?wsdl -j
    ../data/examples/sleep.jsdl
  • On Linux begin above command with ./
  • Unique job ID is returned
  • i.e. UID is urngridsamltcharactersgt

14
CLI Example Monitoring the Job
  • Monitor job until completion
  • gt gridsam-status -s
  • https//blade4.omii.ac.uk18443/gridsam/services
    /gridsam?wsdl -j ltunique_job_idgt
  • On Linux begin above command with ./
  • ltunique_job_idgt is entire urngridsamltcharactersgt
    string
  • Job progress indicated by current state
  • Pending, Staging-in, Staged-in, Active, Executed,
    Staging-out, Staged-out, Done

15
CLI Example Query Grimoires Server
  • At a prompt, type
  • gt cd ltomii_client_homegt/grimoires/bin
  • Access GShell (one line)
  • gt ./run.sh https//blade4.omii.ac.uk18443/grimoi
    res/services
  • Type
  • gt Run InquireService
  • Enter at the inquire prompt
  • All services in registry are returned

16
What to Hand In
  • Submit source code, results files, parameter
    files and output
  • Other parts that require written answers should
    form a separate document
  • In text or Microsoft Word
  • Up to 800 words in length, not including any
    trace output
  • Submission via C-BASS Single Zip file source,
    results, parameter files, output written answers
Write a Comment
User Comments (0)
About PowerShow.com