How do I run a Globus job on the TeraGrid?
These examples of simple Globus runs on the TeraGrid assume that you have an SSH key and a Globus certificate. For help, see Where are instructions for getting a certificate to run Globus jobs on the TeraGrid?
- Log into the National Center for Supercomputing Applications (NCSA): % ssh tg-login1.ncsa.teragrid.org
- Create a proxy: % grid-proxy-init Your identity: /C=US/O=National Center for Supercomputing Applications/CN=Your Name Enter GRID pass phrase for this identity: Creating proxy ................................................. Done Your proxy is valid until: Fri Dec 17 03:32:25 2004 /C=US/O=National Center for Supercomputing Applications/CN=Your Name/CN=proxy
- Verify that the proxy works by authenticating to San Diego Supercomputer Center (SDSC) from NCSA: % globusrun -a -r tg-login.sdsc.teragrid.org GRAM Authentication test successful
- Run a HelloWorld job at SDSC: % more helloworld.rsl & (executable=/bin/echo) (arguments="Hello World!") % globusrun -s -r tg-login.sdsc.teragrid.org -f /home/ncsa/agopu/tmp/helloworld.rsl
- Run a
printDatejob to verify that an output file was created at SDSC: % more printDate.rsl & (executable=/bin/date) (stdout=remotePrintDate.out) % globusrun -s -r tg-login.sdsc.teragrid.org -f /home/ncsa/agopu/tmp/printDate.rsl % gsissh tg-login.sdsc.teragrid.org Welcome to the TeraGrid Itanium2 Linux Cluster ... ... Directory: /users/ux455224 Thu Dec 1613:28:05 PST 2004 /users/ux455224> ls -l remotePrintDate.out -rw------- 1 ux455224 tgu221 29 2004-12-16 13:27 remotePrintDate.out /users/ux455224> more remotePrintDate.out Thu Dec 16 13:27:38 PST 2004 /users/ux455224> logout Connection to tg-login.sdsc.teragrid.org closed. - On multiple sites, run a job that prints the hostname of the gatekeeper at each site: % more printHostname.rsl + ( & (resourceManagerContact="tg-login.sdsc.teragrid.org/jobmanager-fork") (executable=/bin/hostname) (arguments=-f) ) ( & (resourceManagerContact="gatekeeper.bigred.iu.teragrid.org") (executable=/bin/hostname) (arguments=-f) ) % globusrun -s -f /home/ncsa/agopu/tmp/printHostname.rsl tg-login.sdsc.teragrid.org gatekeeper.bigred.iu.teragrid.org
For more about Globus, see the NPACI Grid Globus job tutorial and the Globus Alliance web page.
For a full list of GRAM gatekeeper hosts on the TeraGrid, see the GRAM Gatekeeper Hosts table in the TeraGrid User Support documentation.
This document was developed with support from the National Science Foundation (NSF) under Grant No. 0503697 to the University of Chicago and subcontracted to Indiana University. Additional support was provided by IU through its participation in the TeraGrid, which is supported by the NSF under Grants No. 0833618, SCI451237, SCI535258, and SCI504075. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the NSF.
Last modified on March 15, 2010.







