60 likes | 233 Vues
Java-GAT: gat-job-run Ole Weidner (AEI) Alexander Beck-Ratzka (AEI) Astrogrid-WS Heidelberg, 24.7.06. Java-GAT: gat-job-run. Test program written by Ole Weidner (AEI) Invoked via a shell script Can be used to check available Java-GAT Job submission adaptors. gat-job-run: get from CVS.
E N D
Java-GAT: gat-job-runOle Weidner (AEI)Alexander Beck-Ratzka (AEI)Astrogrid-WS Heidelberg, 24.7.06
Java-GAT: gat-job-run • Test program written by Ole Weidner (AEI) • Invoked via a shell script • Can be used to check available Java-GAT Job submission adaptors.
gat-job-run: get from CVS • Download from Astrogrid-CVS • CVSROOT: :pserver:<user>@astro-cvs.aip.de:2401/cvsroot/astro-cvs • Checkout module: gacg-src/workgroups/wg-7/gat/examples • Delivers GatJobRun directory
gat-job-run: how to build • Change to GatJobRun directory • Set environment variable GAT_LOCATION • ant –f build-standalone.xml • Creates bin sub-directory with GatJobRunner.jar
gat-job-run: how to run • gat-job-run in sub-directory scripts Usage: gat-job-run [OPTIONS] hostname executable [ARGUMENTS] OPTIONS: -username [STRING] username for security context -password [STRING] password for security context -stdin [FILE] path to input file -stdout [FILE] path to output file -stderr [FILE] path to error output file -prestage [FILE],... path to prestage file(s) - comma separated -poststage [FILE],... path to poststage file(s) - comma spearated -RB.adaptor [STRING] force the use of a specific Resource Broker adaptor -RB.jobmanager [STRING] force the use of a specific Resource Broker jobmanager
gat-job-run: example • gat-job-run -prestage test1.sh altix2.lrz-muenchen.de /bin/sh test1.sh [main] INFO gssapi.GlobusGSSManagerImpl - Getting default credential 0 [main] INFO org.globus.gsi.gssapi.GlobusGSSManagerImpl - Getting default credential job info: {resManError=0, resManName=Globus, state=INITIAL, resManState=Unknown, id=https://altix2.lrz-muenchen.de:20048/4066/1153144357/} job info: {resManError=79, resManName=Globus, state=POST_STAGING, resManState=Unknown, id=https://altix2.lrz-muenchen.de:20048/4066/1153144357/} job info: {resManError=79, resManName=Globus, state=STOPPED, resManState=Unknown, id=https://altix2.lrz-muenchen.de:20048/4066/1153144357/} JOB SUMMARY ================================================ Command: /bin/sh Job ID: null Exit value: 0 ================================================ STDOUT ================================================ hello world: I was called with the arguments: with explicit pre staging from peyote... ================================================