Grid Computing, Barry Wilkinson, 2004A3.1 Assignment 3 Simple Job Submission Using GRAM.

Slides:



Advertisements
Similar presentations
A1.1 Assignment 1 “Deploying a Simple Web Service” ITCS 4010/5010 Grid Computing, UNC-Charlotte B. Wilkinson, 2005.
Advertisements

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.
A3.1 Assignment 3 Simple Job Submission Using GT 4 GRAM.
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.
CERN LCG Overview & Scaling challenges David Smith For LCG Deployment Group CERN HEPiX 2003, Vancouver.
JAVA Coursework (the same for 2A and 2B). Fundamental Information The coursework is 30 marks in your O’Level = 15% of the exam Must be word processed.
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.
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.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
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.
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.
MiniProject.1 Mini-project ITCS 4146/5146 Grid Computing, 2007, UNC-Charlotte, B. Wilkinson. March 28a, 2007.
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.
Project 1CS-3013 A-term Programming Project #1 Forking Processes Due Tuesday, September 8, 11:59 PM.
1c.1 Assignment 2 Preliminaries Review (Full details in assignment write-up.)‏ © 2010 B. Wilkinson/Clayton Ferner. Spring 2010 Grid computing course. Modification.
Revisions If you received the grade: “R” If you received the grade: “R” You must do a revision to receive a grade for lab 2. You must do a revision to.
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.
IntroductionCS-3013 C-term Programming Project #1 Forking Processes Due Thursday, January 24, 6:00 PM.
1b.1 Globus Toolkit 4.0 Grid Resource Allocation Manager (GRAM) Job submission ITCS 4146/5146 Grid Computing, 2007, UNC-Charlotte, B. Wilkinson. Jan 24,
11 Chapter 4 LOOPS AND FILES. 22 THE INCREMENT AND DECREMENT OPERATORS To increment a variable means to increase its value by one. To decrement a variable.
ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 22, 2011assignprelim.1 Assignment Preliminaries ITCS 6010/8010 Spring 2011.
ITCS 4/5145 Parallel Programming, UNC-Charlotte, B. Wilkinson, 2012, Jan 18, 2012assignprelim.1 Assignment Preliminaries ITCS 4145/5145 Spring 2012.
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Guidelines for Homework 6. Getting Started Homework 6 requires that you complete Homework 5. –All of HW5 must run on the GridFarm. –HW6 may run elsewhere.
ITCS 4/5145 Cluster Computing, UNC-Charlotte, B. Wilkinson, 2006outline.1 ITCS 4145/5145 Parallel Programming (Cluster Computing) Fall 2006 Barry Wilkinson.
1 Functions 1 Parameter, 1 Return-Value 1. The problem 2. Recall the layout 3. Create the definition 4. "Flow" of data 5. Testing 6. Projects 1 and 2.
1 Introduction to Java Brief history of Java Sample Java Program Compiling & Executing Reading: => Section 1.1.
Project 1, Command Shell CS-502 (EMC) Fall Programming Project #1 Command Shell CS-502, Operating Systems EMC, Fall 2009 (Slides include materials.
ITCS 6/8010 CUDA Programming, UNC-Charlotte, B. Wilkinson, Jan 3, 2011outline.1 ITCS 6010/8010 Topics in Computer Science: GPU Programming for High Performance.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
Drexel University Software Engineering Research Group Git for SE101 1.
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,
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Linux Operations and Administration
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.
LINUX programming 1. INDEX UNIT-III PPT SLIDES Srl. No. Module as per Session planner Lecture No. PPT Slide No. 1.Problem solving approaches in Unix,Using.
CS 320 Assignment 1 Rewriting the MISC Osystem class to support loading machine language programs at addresses other than 0 1.
Practice and Evaluation. Practice Develop a java class called: SumCalculator.java which computes a sum of all integer from 1 to 100 and displays the result.
1 Short Course on Grid Computing Jornadas Chilenas de Computación 2010 INFONOR-CHILE 2010 November 15th - 19th, 2010 Antofagasta, Chile Dr. Barry Wilkinson.
Algorithms  Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
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.
ITCS 4/5145 Parallel Programming, UNC-Charlotte, B. Wilkinson, Dec 26, 2012outline.1 ITCS 4145/5145 Parallel Programming Spring 2013 Barry Wilkinson Department.
Week 61 Introduction to Programming Ms. Knudtzon C Period Tuesday October 12.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
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)
CIS Intro to JAVA Lecture Notes Set July-05 GUI Programming –TextField Action Listeners, JEditorPane action listeners, HTML in a JEditorPane,
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
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.
Algorithms Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
Assignment Preliminaries
Programming Project #1 Command Shell
Assignment Preliminaries
Programming Project #1 Fork and Command Shell
This is a marked test which will count toward the final course mark
CSCE 206 Lab Structured Programming in C
Presentation transcript:

Grid Computing, Barry Wilkinson, 2004A3.1 Assignment 3 Simple Job Submission Using GRAM

Grid Computing, Barry Wilkinson, 2004A3.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.

Grid Computing, Barry Wilkinson, 2004A3.3 Steps Make sure you are in the correct directory. Find a free TCP port. (Can be done from any directory.) Start a container using a free TCP port. Start a proxy process using a second shell. Submit a pre-existing job using the managed-job- globusrun command. Write, compile, and submit your own simple job using GRAM. Write and deploy a grid service. Write and execute client to access service using GRAM. Modify RSL-2 file to execute multiple clients, and test. End your grid session.

Grid Computing, Barry Wilkinson, 2004A3.4 Step 1: Selecting Directory Go to the GLOBUS_LOCATION directory, i.e, with: cd $GLOBUS_LOCATION All pathnames that follow assume that you are in this directory. Note: Globus commands generally must be issued from the GLOBUS_LOCATION directory, which on terra is /usr/local/globus.

Grid Computing, Barry Wilkinson, 2004A3.5 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

Grid Computing, Barry Wilkinson, 2004A3.6 Step 3: Start a Container Start a container with: globus-start-container –p portnumber where portnumber is the port number found in step 2.

Grid Computing, Barry Wilkinson, 2004A3.7 Step 4: Start a Second Shell Start a second shell for remaining commands since the container process in first shell does not terminate and is running in the foreground. Go to the GLOBUS_LOCATION directory. All pathnames that follow assume that you are in this directory.

Grid Computing, Barry Wilkinson, 2004A3.8 Step 5: Start a Proxy To start proxy: grid-proxy-init Then enter your pass phrase.

Grid Computing, Barry Wilkinson, 2004A3.9 Step 6: Submit a Job In this step, will use a pre-existing program, echo. Use managed-job-globusrun to submit job: managed-job-globusrun -factory \ MasterForkManagedJobFactoryService \ -file schema/base/gram/examples/test.xml where: -factory for service to use: MasterForkManagedJobFactoryService -file for file that specifies job and resources including path to job executable. Written in Resource Specification Language 2 (RSL-2), which is a XML schema.

Grid Computing, Barry Wilkinson, 2004A3.10 Step 6 (continued) Study the content of the file 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: gram:executable The executable used in test.xml is /bin/echo gram:arguments gram:stdout gram:count

Grid Computing, Barry Wilkinson, 2004A3.11 Step 7: Write, compile, and run your own job Write your job in Java (or C or C++) that is our version of the echo program. Requires creating: – A new directory below your home directory that has your echo program files (source and class). – Your xml file, Echo.xml, written in RSL-2. Potential Mistake: In Java, the name of the executable is java and the name of your class file is the first argument!

Grid Computing, Barry Wilkinson, 2004A3.12 Step 8: Applying techniques In this step, various techniques so far in the assignments will be used to create client(s) accessing a grid service. Clients are started with managed-job- globusrun.

Grid Computing, Barry Wilkinson, 2004A3.13 Task 1 Write and deploy a grid service called Item. Instances of this service provide inventory information about specific item being sold in a store. Service has three methods:  void store(int n) that sets the number of items held to n.  int remaining() that returns the number of items left in the store.  void buy(int m) that decrements the number of items held by m (i.e. subtracts m from the number of items).

Grid Computing, Barry Wilkinson, 2004A3.14 Service similar to that in assignment 2 only in a different context. Can use the code in assignment 2 and modify it accordingly. Use service browser to check that service properly deployed and functioning.

Grid Computing, Barry Wilkinson, 2004A3.15 Task 2 An instance of the Item class being used by Wal-Mart to decide when to order more "widgets" that they sell from their shelves. Instance of Item for widgets called widget and stores the number of widgets currently unsold in the store. Initially, there are 100 widgets.

Grid Computing, Barry Wilkinson, 2004A3.16 Write a client class called Shopper that represents a shopper buying widgets. Number of widgets a shopper buys provided as a command line argument, and number widgets remaining redirected from standard output to a file.

Grid Computing, Barry Wilkinson, 2004A3.17 Test the client with the deployed service Item, 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 …

Grid Computing, Barry Wilkinson, 2004A3.18 Task 3 Using managed-job-globusrun to start job Create a suitable RSL file for shopper. (Use the echo program RSL file as a template.) Then use managed-job-globusrun command to cause shopper program to be executed from this command.

Grid Computing, Barry Wilkinson, 2004A3.19 Task 4 Use the managed-job-globusrun command to cause four instances of the shopper program to be executed. (Modify the RSL count parameter.) Print out the output file showing the results of four shoppers each buying widgets.

Grid Computing, Barry Wilkinson, 2004A3.20 Disclaimer We have not done Step 8 ourselves yet and there may be missing critical information.

Grid Computing, Barry Wilkinson, 2004A3.21 Step 9: End the Grid Session Before logging off terra, kill your container process

Grid Computing, Barry Wilkinson, 2004A3.22 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.

Grid Computing, Barry Wilkinson, 2004A3.23 Where to Submit Submit your document to me electronically using the WCU WebCT submission system. PLEASE DO NOT SUBMIT TO ME BY UNLESS I ASK YOU TO DO THAT!!

Grid Computing, Barry Wilkinson, 2004A3.24 Grading (Tentative) 75% for completing tasks with proper write-up. 25% for completing task 8, with proper write-up.* Partial credit as appropriate. Screen shots without brief description will incur reduction in grading. * Assumes Task 8 can be done. Grading policy subject to change but only to make it fairer.

Grid Computing, Barry Wilkinson, 2004A3.25 Due Date 11:59 pm Tuesday October 5th, 2004 unless there are system problems.

Grid Computing, Barry Wilkinson, 2004A3.26 Announcement Class test Thursday October 7th, The plan is to make this test a take- home test administrated on WebCT. Topics: Everything in slides and in assignments 1-3.