From T3_KR_KNU
Simple Job submission
Contents
Relevant Commands
o edg-job-submit : submits a job for which the description is in job.jdl o edg-job-status : returns the status of a job with job identifier jobId o edg-job-get-output : return the place where the output of the job can be found o edg-job-cancel : cancels the job with identifier jobId o edg-job-xxx --help : shows the usage of command edg-job-xxx
Helloworld.jdl
Executable = "/bin/echo "; Arguments = "Hello World"; Stdoutput = "message.txt"; StdError = "stderror"; OutputSandbox = {"message.txt","stderror"};
grid-proxy-init
$ grid-proxy-init Your identity: /DC=org/DC=doegrids/OU=People/CN=DaeHee Han 768004 Enter GRID pass phrase for this identity: Creating proxy ................................ Done Your proxy is valid until: Tue May 3 04:10:27 2005
grid-job-submit
$ grid-job-submit -vo cms HelloWorld.jdl Selected Virtual Organisation name (from --vo option): cms Connecting to host cluster3.knu.ac.kr, port 7772 Logging to host cluster3.knu.ac.kr, port 9002 ********************************************************************************************* JOB SUBMIT OUTCOME The job has been successfully submitted to the Network Server. Use edg-job-status command to check job current status. Your job identifier (edg_jobId) is: - https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw *********************************************************************************************
edg-job-status
[hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw ************************************************************* BOOKKEEPING INFORMATION: Status info for the Job : https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw Current Status: Waiting reached on: Wed Jun 1 08:37:45 2005 *************************************************************
[hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw ************************************************************* BOOKKEEPING INFORMATION: Status info for the Job : https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw Current Status: Scheduled Status Reason: Job successfully submitted to Globus Destination: cluster50.knu.ac.kr:2119/jobmanager-torque-cms reached on: Wed Jun 1 08:37:45 2005 *************************************************************
[hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw ************************************************************* BOOKKEEPING INFORMATION: Status info for the Job : https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw Current Status: Running Status Reason: Job successfully submitted to Globus Destination: cluster50.knu.ac.kr:2119/jobmanager-torque-cms reached on: Wed Jun 1 08:44:01 2005 *************************************************************
[hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw ************************************************************* BOOKKEEPING INFORMATION: Status info for the Job : https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw Current Status: Done (Success) Exit code: 0 Status Reason: Job terminated successfully Destination: cluster50.knu.ac.kr:2119/jobmanager-torque-cms reached on: Wed Jun 1 08:45:18 2005 *************************************************************
edg-job-get-output
[hanbi@cluster3 LCG]$ edg-job-get-output https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw Retrieving files from host: cluster3.knu.ac.kr ( for https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw ) ********************************************************************************* JOB GET OUTPUT OUTCOME Output sandbox files for the job: - https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw have been successfully retrieved and stored in the directory: /tmp/jobOutput/hanbi_v2oS_UiyNOBxOWKUaSF8nw *********************************************************************************
[hanbi@cluster3 LCG]$ cat /tmp/jobOutput/hanbi_v2oS_UiyNOBxOWKUaSF8nw/message.txt Hello World [hanbi@cluster3 LCG]$ cat /tmp/jobOutput/hanbi_v2oS_UiyNOBxOWKUaSF8nw/stderror [hanbi@cluster3 LCG]$