From T3_KR_KNU
(→edg-job-status) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
: shows the usage of command edg-job-xxx | : shows the usage of command edg-job-xxx | ||
− | |||
== Helloworld.jdl == | == Helloworld.jdl == | ||
Line 21: | Line 20: | ||
StdError = "stderror"; | StdError = "stderror"; | ||
OutputSandbox = {"message.txt","stderror"}; | OutputSandbox = {"message.txt","stderror"}; | ||
− | |||
== grid-proxy-init == | == grid-proxy-init == | ||
Line 31: | Line 29: | ||
Your proxy is valid until: Tue May 3 04:10:27 2005 | Your proxy is valid until: Tue May 3 04:10:27 2005 | ||
+ | == grid-job-submit == | ||
− | + | <pre> | |
+ | $ grid-job-submit -vo cms HelloWorld.jdl | ||
Selected Virtual Organisation name (from --vo option): cms | Selected Virtual Organisation name (from --vo option): cms | ||
Line 46: | Line 46: | ||
********************************************************************************************* | ********************************************************************************************* | ||
+ | </pre> | ||
+ | == edg-job-status == | ||
− | + | <pre> | |
− | + | ||
[hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw | [hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw | ||
Line 59: | Line 60: | ||
reached on: Wed Jun 1 08:37:45 2005 | reached on: Wed Jun 1 08:37:45 2005 | ||
************************************************************* | ************************************************************* | ||
− | + | </pre> | |
+ | <pre> | ||
[hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw | [hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw | ||
Line 71: | Line 73: | ||
reached on: Wed Jun 1 08:37:45 2005 | reached on: Wed Jun 1 08:37:45 2005 | ||
************************************************************* | ************************************************************* | ||
− | + | </pre> | |
+ | <pre> | ||
[hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw | [hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw | ||
Line 83: | Line 86: | ||
reached on: Wed Jun 1 08:44:01 2005 | reached on: Wed Jun 1 08:44:01 2005 | ||
************************************************************* | ************************************************************* | ||
− | + | </pre> | |
+ | <pre> | ||
[hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw | [hanbi@cluster3 LCG]$ edg-job-status https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw | ||
Line 96: | Line 100: | ||
reached on: Wed Jun 1 08:45:18 2005 | reached on: Wed Jun 1 08:45:18 2005 | ||
************************************************************* | ************************************************************* | ||
+ | </pre> | ||
− | = edg-job-get-output | + | == edg-job-get-output == |
+ | <pre> | ||
[hanbi@cluster3 LCG]$ edg-job-get-output https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw | [hanbi@cluster3 LCG]$ edg-job-get-output https://cluster3.knu.ac.kr:9000/v2oS_UiyNOBxOWKUaSF8nw | ||
Line 112: | Line 118: | ||
********************************************************************************* | ********************************************************************************* | ||
− | + | </pre> | |
+ | <pre> | ||
[hanbi@cluster3 LCG]$ cat /tmp/jobOutput/hanbi_v2oS_UiyNOBxOWKUaSF8nw/message.txt | [hanbi@cluster3 LCG]$ cat /tmp/jobOutput/hanbi_v2oS_UiyNOBxOWKUaSF8nw/message.txt | ||
Hello World | Hello World | ||
[hanbi@cluster3 LCG]$ cat /tmp/jobOutput/hanbi_v2oS_UiyNOBxOWKUaSF8nw/stderror | [hanbi@cluster3 LCG]$ cat /tmp/jobOutput/hanbi_v2oS_UiyNOBxOWKUaSF8nw/stderror | ||
[hanbi@cluster3 LCG]$ | [hanbi@cluster3 LCG]$ | ||
+ | </pre> |
Latest revision as of 06:40, 14 May 2009
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]$