A3.1 Assignment 3 Simple Job Submission Using GT 4 GRAM.

Slides:



Advertisements
Similar presentations
PHP Form and File Handling
Advertisements

Three types of remote process invocation
Globus Workshop at CoreGrid Summer School 2006 Dipl.-Inf. Hamza Mehammed Leibniz Computing Centre.
WS-JDML: A Web Service Interface for Job Submission and Monitoring Stephen M C Gough William Lee London e-Science Centre Department of Computing, Imperial.
A1.1 Assignment 1 “Deploying a Simple Web Service” ITCS 4010/5010 Grid Computing, UNC-Charlotte B. Wilkinson, 2005.
Grid Computing, Barry Wilkinson, 2004A3.1 Assignment 3 Simple Job Submission Using GRAM.
Mark Holliday and Barry Wilkinson, 2004A2.1 Assignment 2 “Simple” Grid Services Assignment.
Barry Wilkinson and Mark Holliday, 2004A1.1 Assignments Preliminaries Several computers are configured at WCU for the assignments. Here, terra.cs.wcu.edu.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
Grid Resource Allocation Management (GRAM) GRAM provides the user to access the grid in order to run, terminate and monitor jobs remotely. The job request.
Student Getting Started Guide Updated June Ensure that you are connected to the Internet. 2. Launch your web browser (Internet Explorer, Firefox,
1 Workshop 20: Teaching a Hands-on Undergraduate Grid Computing Course SIGCSE The 41st ACM Technical Symposium on Computer Science Education Friday.
PART 6 Application Layer
Assignment 2 Modifying, Compiling, and Deploying a Simple Service Presenter Information goes Here.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
1c.1 Assignment 2 Preliminaries Review Full details in assignment write-up. ITCS 4146/5146 Grid Computing, 2007, UNC-Charlotte, B. Wilkinson. Jan 24, 2007.
Outline.1 Grid Computing Fall 2005 Tuesday/Thursday 11:00 am - 12:20 pm Instructors Dr. Barry Wilkinson University of North Carolina at Charlotte and Dr.
AssignPrelim1.1 © 2011 B. Wilkinson/Clayton Ferner. Modification date: Aug 22, 2011 Course Preliminaries.
6a.1 Globus Toolkit Execution Management. Data Management Security Common Runtime Execution Management Information Services Web Services Components Non-WS.
AssignPrelim1.1 ITCS 4010 Grid Computing, 2005, UNC-Charlotte, B. Wilkinson. Course Preliminaries.
Classes and Instances. Introduction Classes, Objects, Methods and Instance Variables Declaring a Class with a Method and Instantiating an Object of a.
AssignPrelim1.1 ITCS 4146/5146 Grid Computing, 2007, UNC-Charlotte, B. Wilkinson. Jan 13, 2007 Course Preliminaries.
AssignPrelim1.1 ITCS 4146/5146 Grid Computing, 2008, UNC-Charlotte, B. Wilkinson. Aug 25, 2008 Course Preliminaries.
Sun Grid Engine Grid Computing Assignment – Fall 2005 James Ruff Senior Department of Mathematics and Computer Science Western Carolina University.
Assignment 3 Using GRAM to Submit a Job to the Grid James Ruff Senior Western Carolina University Department of Mathematics and Computer Science.
CS 898N – Advanced World Wide Web Technologies Lecture 6: PERL and CGI Chin-Chih Chang
1c.1 Assignment 2 Preliminaries Review (Full details in assignment write-up.)‏ © 2011 B. Wilkinson/Clayton Ferner. Fall 2011 Grid computing course. Modification.
AssignPrelim1.1 © 2010 B. Wilkinson/Clayton Ferner. Modification date: Dec 20, 2009 Course Preliminaries.
SETUP AND CONFIGURATIONS WEBLOGIC SERVER. 1.Weblogic Installation 2.Creating domain through configuration wizard 3.Creating domain using existing template.
1 Chapter Overview Introduction to Windows XP Professional Printing Setting Up Network Printers Connecting to Network Printers Configuring Network Printers.
Chapter 6: Hostile Code Guide to Computer Network Security.
Using Ant to build J2EE Applications Kumar
1 Homework / Exam Exam 3 –Solutions Posted –Questions? HW8 due next class Final Exam –See posted schedule Websites on UNIX systems Course Evaluations.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
ITCS 4/5145 Parallel Programming, UNC-Charlotte, B. Wilkinson, 2012, Jan 18, 2012assignprelim.1 Assignment Preliminaries ITCS 4145/5145 Spring 2012.
GT Components. Globus Toolkit A “toolkit” of services and packages for creating the basic grid computing infrastructure Higher level tools added to this.
Web Server Administration Web Services XML SOAP. Overview What are web services and what do they do? What is XML? What is SOAP? How are they all connected?
1 Introduction to Java Brief history of Java Sample Java Program Compiling & Executing Reading: => Section 1.1.
Grid Resource Allocation and Management (GRAM) Execution management Execution management –Deployment, scheduling and monitoring Community Scheduler Framework.
Chapter 3 Servlet Basics. 1.Recall the Servlet Role 2.Basic Servlet Structure 3.A simple servlet that generates plain text 4.A servlet that generates.
Nadia LAJILI User Interface User Interface 4 Février 2002.
A Geographically-Distributed, Assignment-Structured Undergraduate Grid Computing Course Mark A. Holliday, Barry Wilkinson, Jeffrey House, Samir Daoud,
Linux Operations and Administration
CS 320 Assignment 1 Rewriting the MISC Osystem class to support loading machine language programs at addresses other than 0 1.
The Globus Toolkit 4 (GT4) A brief introduction. Web Services, WSRF, OGSA and GT4.
CHEP03 Mar 25Mary Thompson Fine-grained Authorization for Job and Resource Management using Akenti and Globus Mary Thompson LBL,Kate Keahey ANL, Sam Lang.
Topics Sending an Multipart message Storing images Getting confirmation Session tracking using PHP Graphics Input Validators Cookies.
1 Short Course on Grid Computing Jornadas Chilenas de Computación 2010 INFONOR-CHILE 2010 November 15th - 19th, 2010 Antofagasta, Chile Dr. Barry Wilkinson.
Java Commodity Grid (Java CogKit) Java CogKits allow developers to use commodity technologies such as Java or Python in programming the Grid based on Globus.
Part Five: Globus Job Management A: GRAM B: Globus Job Commands C: Laboratory: globusrun.
General rules 1. Rule: 2. Rule: 3. Rule: 10. Rule: Ask questions ……………………. 11. Rule: I do not know your skill. If I tell you things you know, please stop.
WWW: an Internet application Bill Chu. © Bei-Tseng Chu Aug 2000 WWW Web and HTTP WWW web is an interconnected information servers each server maintains.
Implementing and Using the SIRWEB Interface Setup of the CGI script and web procfile Connecting to your database using HTML Retrieving data using the CGI.
Form Processing Week Four. Form Processing Concepts The principal tool used to process Web forms stored on UNIX servers is a CGI (Common Gateway Interface)
1 G52IWS: Example Web-services Chris Greenhalgh. 2 Contents Software requirements AXIS web service run-time components Getting started with Jetty & AXIS.
Application Web Service Toolkit Allow users to quickly add new applications GGF5 Edinburgh Geoffrey Fox, Marlon Pierce, Ozgur Balsoy Indiana University.
Congreso Cuidad, Spain May 15, 2007 GridWay 1/28, Installation and Basic Configuration GridWay Distributed Systems Architecture Group Universidad Complutense.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
Assignment Preliminaries The following applies to all assignments © 2016 B. Wilkinson Assignprelim.ppt Modification date: January 3, 2016.
Development of a Grid Computing Course for Fall 2004 Barry Wilkinson and Mark A. Holliday Department of Mathematics and Computer Science Western Carolina.
Assignment Preliminaries
Distributed Computing, M. L. Liu
Distributed Computing, M. L. Liu
Web Server Administration
Java applets 1/3/2019.
Assignment Preliminaries
Grid Computing Software Interface
Presentation transcript:

A3.1 Assignment 3 Simple Job Submission Using GT 4 GRAM

A3.2 Goals To use the Globus Resource Allocation Manager (GRAM) to submit jobs. GRAM supports job submission on a local or remote host. To learn how to use RSL-2 to specify job requirements. To have more practice writing clients and grid services and to run a job which consists of multiple clients accessing a grid service.

A3.3 Steps Find a free TCP port. Start a container using a free TCP port. Start a proxy process using a second shell. Submit a pre-existing job using the globusrun-ws command.

A3.4 Steps continued Write, compile, and submit your own simple job using GRAM. End your grid session.

A3.5 Extra credit Write client to access a service. Execute the client using GRAM. Modify RSL-2 file to execute 4 clients. Execute 4 identical clients using GRAM. End your grid session.

A3.6 Step 1: Preliminaries Log on to assigned server and create assignment3 directory. cd into that directory. In Globus 3.2, Globus commands had to issued from $GLOBUS_LOCATION directory but this constraint is lifted with GT 4

A3.7 Step 2: Determine free TCP ports In Step 3, you will start a container process. That process will listen on a TCP port that must not already be in use. Find a free TCP port using the netstat command: netstat –t –all

A3.8 Step 3: Start a Container Switch to user globus and start a container with: sudo –u globus \ globus-start-container –p portnumber where portnumber is the port number found in Step 2. Switching to user globus is a security issue. Currently the UNC-C system does not have this requirement We have experimented with using a single container for everyone, as a container has a very big footprint, and multiple containers can cause trashing.

A3.9 Step 3: Start a Container Switch to user globus to start a container with: sudo –u globus \ globus-start-container –p portnumber where portnumber is the port number found in Step 2. Switching to user globus is a security issue. Currently, the UNC-C system does not have this requirement.

A3.10 We have experimented with using a single container for everyone, as a container has a very big footprint, and multiple containers can cause trashing. But then when one closes the container, everyone is effected.

A3.11 Step 5: Start a Proxy To start proxy: grid-proxy-init Then enter your pass phrase.

A3.12 Step 6: Submit a Job In this step, will use a pre-existing program, echo. Use globusrun-ws to submit job: globusrun-ws -submit –F localhost:portnumber -f $GLOBUS_LOCATION/test/globus_wsrf_gram _service_java_test_unit/test.xml where test.xml specifies job and resources including path to job executable. Written in Resource Specification Language 2 (RSL-2), which is a XML schema.

A3.13 Step 6 (continued) Study contents of test.xml as an example of the RSL-2 language used to specify resources needed by a job. Important tags in the RSL-2 XML schema for this assignment include: The executable used in test.xml is /bin/echo

A3.14 Step 7: Write, compile, and run your own job Write your job in Java (or C or C++) that is your version of the echo program. (This step is written purposely in an obscure fashion!) Create a new directory below your home directory that has your echo program files (source and class). Also need an RSL file, myecho.xml say, to specify job. Potential Mistake: In Java, the name of the executable is java and the name of your class file is its first argument!

A3.15 Step 8: Ending your session Stop the container: sudo –u globus stopcontainer.sh portnumber s The last argument, s, is missing in the write-up (unless now corrected). For the UNC-C system, we altered the script so as not to use this argument.

A3.16 Extra work For graduate students and extra credit for undergraduates

A3.17 In assignment 2, a client accesses a web service. The client was started on the command line. Demonstrate starting the client using globusrun-ws rather than directly. Demonstrate starting four such clients using globusrun-ws.

A3.18 How this could be used in a client-server application “widget” shopper at Walmart

A3.19 Consider a web service accessing an inventory about specific items being sold in a store. The inventory is resource. The web service represents a cash register, or cashier. Consider a specific item called a “widget.” Clients exist representing “widget” buyers.

A3.20 Inventory widgets: number Clients Cashier (web service)

A3.21 Web Service has three methods:  void store(int n) that sets the number of widgets held to n.  int remaining() that returns the number of widgets left in the store.  void buy(int m) that decrements the number of widgets held by m (i.e. subtracts m from the number of widgets).

A3.22 Service similar to that in assignment 2 only in a different context. Can use the code in assignment 2 and modify it accordingly.

A3.23 Create the web service and resource. Set the initial number of widgets (say 100 widgets).

A3.24 Write a client class say called Shopper that represents a shopper buying widgets. Number of widgets a shopper buys provided as a command line argument.

A3.25 Test the client with the deployed web service with a shopper, shopper1, that is buying five widgets using the command line of the form used in assignment 2,step 10:. java -classpath./build/classes/:$CLASSPATH …

A3.26 Using globusrun-ws to start job Create a suitable RSL file for shopper. (Use the echo program RSL file as a template.) Then use globusrun-ws command to cause shopper program to be executed from this command.

A3.27 Use the globusrun-ws command to cause four instances of the shopper program to be executed. (Modify the RSL count parameter.) Print out the results of four shoppers each buying widgets.

A3.28 Disclaimer We have not done this ourselves yet and there may be missing critical information.

A3.29 What to submit Produce a page Word document. Include your name and brief explanation of what you did, referring to assignment. Include your modifications and code. Show that you successfully followed the instructions and performs all tasks by taking screen shots. Include these screen shots in the document. Number of screen shots is up to you but it should demonstrate your programs worked.

A3.30 Where to Submit Submit your document to WebCT by the posted due date.

A3.31 PLEASE DO NOT SUBMIT TO ME BY UNLESS I SPECIFICALLY ASK YOU TO DO THAT!!

A3.32 Grading (Tentative) 50% for completing tasks with proper write-up. 50% for completing task 7, with proper write-up.* Partial credit as appropriate. No screen shots will incur big reduction in grading. * Grading policy subject to change but only to make it fairer.