SlideServe
Menu
Préférences
© SlideServe · v2026

Exploring Java Commodity Grid: Globus Toolkit Integration

minniecoleman avatar
10 diapositives · 146 Views · Jan 06, 2020

Learn how Java CogKit enables developers to utilize Java for Grid tasks with services like security, job submission, and data access. Exercise GridFTP and Gram examples. Implement parallel counting tasks using Java.

Exploring Java Commodity Grid: Globus Toolkit Integration - slide 1
01 / 10Exploring Java Commodity Grid: Globus Toolkit Integration
1 / 17

Télécharger la présentation

Exploring Java Commodity Grid: Globus Toolkit Integration
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. 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

  2. Java Commodity Grid (Java CogKit) • Aim: To download a file using GridFTP. • Create a directory under /grid/users/<your_name>/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/<your_name>/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.

  3. Java Commodity Grid (GridFTP)

  4. Java Commodity Grid (GridFTP)

  5. Java Commodity Grid (GridFTP)

  6. 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.

  7. Java Commodity Grid (GRAM)

  8. Java Commodity Grid (GRAM)

  9. 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.

  10. 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.