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.

Slides:



Advertisements
Similar presentations
Globus Workshop at CoreGrid Summer School 2006 Dipl.-Inf. Hamza Mehammed Leibniz Computing Centre.
Advertisements

Legacy code support for commercial production Grids G.Terstyanszky, T. Kiss, T. Delaitre, S. Winter School of Informatics, University.
Grid Computing, Barry Wilkinson, 2004A3.1 Assignment 3 Simple Job Submission Using GRAM.
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.
© Geodise Project, University of Southampton, Applications and Middleware Hakki Eres, Fenglian Xu & Graeme Pound.
USING THE GLOBUS TOOLKIT This summary by: Asad Samar / CALTECH/CMS Ben Segal / CERN-IT FULL INFO AT:
GRID workload management system and CMS fall production Massimo Sgaravatto INFN Padova.
Globus Toolkit 4 hands-on Gergely Sipos, Gábor Kecskeméti MTA SZTAKI
How do we make our HelloTester.java program do something? The java in our HelloTester.java file won’t do anything by itself. We need to tell the computer.
Introduction to Java Lab CS110A – Lab Section 004 Instructor: Duo Wei.
Java Intro. A First Java Program //The Hello, World! program in Java public class Hello { public static void main(String[] args) { System.out.println("Hello,
Slide 1 of 40. Lecture A The Java Programming Language Invented 1995 by James Gosling at Sun Microsystems. Based on previous languages: C, C++, Objective-C,
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Grids and Globus at BNL Presented by John Scott Leita.
Writing algorithms using the for-statement. Programming example 1: find all divisors of a number We have seen a program using a while-statement to solve.
CSCI S-1 Section 3. Deadlines for Homework 2 Problems 1-8 in Parts C and D – Friday, July 3, 17:00 EST Parts E and F – Tuesday, July 7, 17:00 EST.
Shorthand operators.
BaBar WEB job submission with Globus authentication and AFS access T. Adye, R. Barlow, A. Forti, A. McNab, S. Salih, D. H. Smith on behalf of the BaBar.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
A Java Based Prototype Grid User Interface Janice Drohan Project Supervisor: Prof. Peter Clarke.
Understanding the CORBA Model. What is CORBA?  The Common Object Request Broker Architecture (CORBA) allows distributed applications to interoperate.
Condor Tugba Taskaya-Temizel 6 March What is Condor Technology? Condor is a high-throughput distributed batch computing system that provides facilities.
1. Introduction  The JavaScript Grid Portal is trying to find a way to access Grid through Web browser, while using Web 2.0 technologies  The portal.
CoG Kit Overview Gregor von Laszewski Keith Jackson.
Introduction to Computers and Java Chapter 1.3. A Sip of Java: Outline History of the Java Language Applets A First Java Program Compiling a Java Program.
1 Introduction to Java Brief history of Java Sample Java Program Compiling & Executing Reading: => Section 1.1.
Grids and Portals for VLAB Marlon Pierce Community Grids Lab Indiana University.
Job Submission Condor, Globus, Java CoG Kit Young Suk Moon.
Grid Resource Allocation and Management (GRAM) Execution management Execution management –Deployment, scheduling and monitoring Community Scheduler Framework.
Grid Computing I CONDOR.
Java Spring PImage Let’s look at the PImage class in ProcessingPImage –What are the fields (i.e., variables)? –What methods are available? –What.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
Board Activity Find your seat on the seating chart Login – Remember your login is your first initial your last name and the last three numbers of your.
The scope of local variables. Murphy's Law The famous Murphy's Law says: Anything that can possibly go wrong, does. (Wikipedia page on Murphy's Law:
IBM TSpaces Lab 1 Introduction. Summary TSpaces Overview Basic Definitions Basic primitive operations Reading/writing tuples in tuplespace HelloWorld.
Resource Brokering in the PROGRESS Project Juliusz Pukacki Grid Resource Management Workshop, October 2003.
© Geodise Project, University of Southampton, Geodise Middleware & Optimisation Graeme Pound, Hakki Eres, Gang Xue & Matthew Fairman Summer 2003.
Mixing integer and floating point numbers in an arithmetic operation.
1 Creating Web Services Presented by Ashraf Memon Hands-on Ghulam Memon, Longjiang Ding.
Creating and running an application.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
Overview of Java CSCI 392 Day One. Running C code vs Java code C Source Code C Compiler Object File (machine code) Library Files Linker Executable File.
Using the while-statement to process data files. General procedure to access a data file General procedure in computer programming to read data from a.
Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang.
The assignment expressions. The assignment operator in an assignment statement We have seen the assignment statement: Effect: var = expr; Stores the value.
© Geodise Project, University of Southampton, Geodise Middleware Graeme Pound, Gang Xue & Matthew Fairman Summer 2003.
Globus Grid Tutorial Part 2: Running Programs Across Multiple Resources.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
Java FilesOops - Mistake Java lingoSyntax
Introduction to array: why use arrays ?. Motivational example Problem: Write a program that reads in and stores away 5 double numbers After reading in.
CSCI S-1 Section 4. Deadlines for Homework 2 Problems 1-8 in Parts C and D – Friday, July 3, 17:00 EST Parts E and F – Tuesday, July 7, 17:00 EST.
Creating Web Services Presented by Ashraf Memon Presented by Ashraf Memon.
© Geodise Project, University of Southampton, Geodise Compute Toolbox Functions CommandFunctionCommandFunction gd_certinfo.
The Gateway Computational Web Portal Marlon Pierce Indiana University March 15, 2002.
3/5/2002e-business and Information Systems1 Java Java Java Virtual Machine (JVM) Java Application Program Interface (API) HW Kernel API Application Programs.
Practical using C++ WMProxy API advanced job submission
Duncan MacMichael & Galen Deal CSS 534 – Autumn 2016
Exercise Java programming
Software Development Packages
An Introduction to Java – Part I, language basics
The Boolean (logical) data type boolean
Java Intro.
class PrintOnetoTen { public static void main(String args[]) {
Developing Java Applications with NetBeans
Developing Java Applications with NetBeans
The for-statement.
Compile and run c files.
Presentation transcript:

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. The Java CogKit provides a mapping between Java and the Globus Toolkit. However, it is not a wrapper of the Globus Toolkit. Java CogKit provides the following basic services: –Security –Remote job submission and monitoring –Remote data access –Information service access –Certificate store

Java Commodity Grid (Java CogKit) Aim: To download a file using GridFTP. Create a directory under /grid/users/ /samples/ called ‘resourcemanagement.’. –cd grid/users/tugba –mkdir samples –cd samples –mkdir resourcemanagement Create a test file called “TestGridFile” then write something to the file. Save it under /grid/users/ /samples/resourcemanagement. Open another terminal and create the same directory structure as above. Then, download “MyGridFTP.java” and “GramExampleMulti.java” files to newly created directory. Then compile the files.

Java Commodity Grid (GridFTP)

Java Commodity Grid (Java CogKit) Create a new Java file called “TestGridFTP.java”. Then write the following lines to that file: import org.apache.log4j.Logger; import org.apache.log4j.Level; import org.globus.ftp.*; public class TestGridFTP { public static void main(String [] args){ Logger.getRoot().setLevel(Level.INFO); // remote files String rf1 = "/grid/users/tugba/samples/resourcemanagement/TestGridFile"; String host = "concorde01.mcs.surrey.ac.uk"; // local files String lf1 = "/grid/users/tugba/samples/resourcemanagement/TestGridFile"; int TRANSFER_TYPE = GridFTPSession.TYPE_ASCII; MyGridFTP myGridFTP1 = new MyGridFTP(host, MyGridFTP.GRIDFTP_PORT,"/tmp/x509up_u28008",true); myGridFTP1.parallelDownload(rf1,lf1); myGridFTP1.close(); } Run the “TestGridFTP.java”. java TestGridFTP Exercise: Look at the Java implementation of MyGridFTP and transfer a local file to a remote computer.

Java Commodity Grid (GRAM)

Java Commodity Grid (Java CogKit) Create a Java file called “TestGram.java” under the same directory. Write the following lines to the file. public class TestGram { public static void main(String [] args){ String [] contact = new String[1]; contact[0] = “concorde02.mcs.surrey.ac.uk”; GramExampleMulti gramm = new GramExampleMulti(contact, false); String [] rsl_command = new String[1]; rsl_command[0] = new String("&(executable=/opt/SUNWjava/j2sdk1.4.1_01/bin/java)(directory =/grid/users/tugba/samples/resourcemanagement)(arguments= HelloWorld)"); String jobOut = gramm.GlobusRun(rsl_command); System.out.println("Output:" + jobOut); } Compile and run the program.

Java Commodity Grid (Java CogKit) Exercise: Implement the following tasks: –You want to count from 1 to a number x (such as 10000). The number x and the number of machines y to be used for counting process will be submitted to the service provider. –The service that received the request will parallelise the process by executing the query on y number of machines. –The service provider will send the output back to the client machine.