Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
How to submit simple jobs onto the Grid | ||||||||
Line: 6 to 6 | ||||||||
On this page, we intend to provide a brief introduction on simple job submission onto the Grid. One can also find a brief introductory material on the Grid homepage of RMKI![]() | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > | Log onto a User Interface (UI) machine | |||||||
After you have logged onto a UI machine, you are able to submit commands to the Grid. | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > | Log onto the Grid (get authenticated on the Grid) | |||||||
This means getting a so called user proxy. Commands are: | ||||||||
Line: 19 to 19 | ||||||||
> grid-proxy-init -valid 4:00 This is the same, but the authentication will expire in 4 hours (default lifetime is 12 hours). | ||||||||
Changed: | ||||||||
< < | If you are member of more then one VO, you can choose between them by using the voms-proxy-init for logging in, instead. E.g.: | |||||||
> > | If you are member of more then one VO, you can choose between them by using the voms-proxy-init for logging in, instead of grid-proxy-init . E.g.: | |||||||
> voms-proxy-init -voms hungrid Or: | ||||||||
Line: 28 to 28 | ||||||||
To get information on your user proxy, you can use the commands grid-proxy-info or voms-proxy-info . | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > | Get your jobs authenticated on the Grid | |||||||
This means getting a so called job proxy. Commands are: | ||||||||
Line: 41 to 41 | ||||||||
Note: If you don't get a job proxy, you may not be able to retrieve your job outputs for long-term jobs! | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > | Prepare and submit your job | |||||||
The programme which you want to run on the Grid is called a job. These consist of some executable(s) and some input(s), which can be submitted to the Grid system. The result shall be some output(s), which can be retrieved after your job has finished. | ||||||||
Line: 115 to 115 | ||||||||
This will retrieve the content of the OutputSandbox into the directory /tmp/jobOutput/yourusername_jobID . | ||||||||
Changed: | ||||||||
< < | For further information, look at the man pages of the above commands, and maybe also to the man pages of other edg- commands. | |||||||
> > | For further information, look at the man pages of the above commands, and maybe also to the man pages of other edg- commands. For further references on simple job submission, see https://edms.cern.ch/file/454439//LCG-2-UserGuide.html![]() |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
How to submit simple jobs onto the GridOn this page, we intend to provide a brief introduction on simple job submission onto the Grid. One can also find a brief introductory material on the Grid homepage of RMKI![]()
> grid-proxy-init Here, you will be prompted for your grid password. Or:
> grid-proxy-init -valid 4:00 This is the same, but the authentication will expire in 4 hours (default lifetime is 12 hours).
If you are member of more then one VO, you can choose between them by using the voms-proxy-init for logging in, instead. E.g.:
> voms-proxy-init -voms hungrid Or:
> voms-proxy-init -voms hungrid -valid 4:00
To get information on your user proxy, you can use the commands grid-proxy-info or voms-proxy-info .
> myproxy-init Here, you will be prompted for your grid password, and to specify an additional password (for extra protection) attached to your so called job proxy, to be created.
> myproxy-init -n This is the same, but you won't be asked to specify an additional password for protecting your job proxy.
Running myproxy-init is necessary when you are running long-term jobs. Having a job proxy ensures that your jobs still will be authenticated on the Grid, even though your user proxy (used to perform interactive Grid manupulations) may have had expired. You can get information on your job proxy by myproxy-info . You can destroy your job proxy by myproxy-destroy . The default lifetime of a job proxy is 168 hours.
Note: If you don't get a job proxy, you may not be able to retrieve your job outputs for long-term jobs!
[ JobType = "Normal" Executable = "testjob.sh"; StdOutput = "testjob.stdout"; StdError = "testjob.stdout"; InputSandbox = {"testjob.sh", "inputfile.dat"}; OutputSandbox = {"testjob.stdout", "outputfile.dat"}; Requirements = ( Member("AFS", other.GlueHostApplicationSoftwareRunTimeEnvironment) && other.GlueCEUniqueID=="grid109.kfki.hu:2119/jobmanager-lcgpbs-hungrid" ); ]The meaning of the above variables are:
> edg-list-match -vo your_vo testjob.jdlThis will return a list of Grid queues (computing elements). The job can be submitted by the command: > edg-job-submit -vo your_vo testjob.jdlThis will return a sURL address, which is a unique identifier of your job, which shall be denoted by jobID in the followings.
The status of the job can be viewed by:
> edg-job-get-status jobIDThis will return the current status of your job. If your job has failed to be ran by the Grid system, the logging may be retrieved by: > edg-job-get-logging-info jobIDThis will return the logging info on your job. A convenient way to find out failure reasons is: > edg-job-get-logging-info -v 2 jobID > log > grep "reason" log | uniqThis will return all the available logging info on your job ( -v 2 switch), and shall write it into the file log . The second command line lists the unique lines of the file log , containing the string reason , which will tell the reasons for various actions of the Grid system.
If your job has properly finished, you can retrieve the outputs by the command:
> edg-job-get-output jobIDThis will retrieve the content of the OutputSandbox into the directory /tmp/jobOutput/yourusername_jobID .
For further information, look at the man pages of the above commands, and maybe also to the man pages of other edg- commands. |