Exercises - part 3
job submission



A - job "Hello World"

1 - Create a proxy with voms-proxy-init (don't forget -voms option)

2 - Submit the job HelloWorld.jdl : edg-job-submit

3 - Get the status of the job : edg-job-status

4 - When the job is done, get the output : edg-job-get-output.

5 - Check everything has been done correctly by viewing the output files message.txt et stderror.

6 - Do the same operations, but this time use an output file for the job ids instead of the JobID


B - Submission on a particular CE

1 - List the CE on which you can submit the jobHelloWorld.jdl : edg-job-list-match

2 - Find the option that allows you to submit the job on a particular site : edg-job-submit --help

3 - Submit the job on your chosen site, and check the output once it is done


C - Fichier jdl : modification

1 - Modify the file HelloWorld.jdl de manière à ce qu'il n'appelle plus /bin/echo but the script script start.sh (which is in the tutorial_material repository ).
The line "Executable" must be /bin/sh, and the line "Argument" must be start.sh. Moreover you must define the parameter "InputSandbox" by adding the line InputSandbox = "~/tutorial_material/start.sh"
Submit the job.

2 - Modify the file HelloWorld.jdl de manière à ce qu'il appelle cette fois l'éxecutable myhostname.
The source of this executable is a C file: myhostname.c. You don't have to add an argument this time (edit myhostname.c to see).
Submit the job.

3 - The use of a C-compiled file is not very sure : because of th executble file, (size, dependency), ...)
One solution consists on compile the program directly on the CE.
Modify HelloWorld.jdl de manière à ce qu'il appelle le script buildandrun.sh, with as argument myhostname (see buildanrun.sh to understand).
Submit the job.


D - Mapping - List the files on a Worker Node

1 - Edit the file listOfFiles.jdl

2 - Submit the job and get the output. Edit the file ListOfFiles.txt