GENIUS Exercises
-
Upload
bernard-peck -
Category
Documents
-
view
41 -
download
0
description
Transcript of GENIUS Exercises
![Page 1: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/1.jpg)
Riccardo Bruno, INFN.CTSevilla, 10-14/09/2007
GENIUS Exercises
![Page 2: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/2.jpg)
2
Practical information
GENIUS Tutorial website: • https://glite-tutor.ct.infn.it
Tutorial accounts on glite-tutor:• Username: sevillaXX where XX goes from 01 to
30• Password: GridSEVXX where XX goes from 01 to
30when issuing the myproxy-init command• Myproxy password: SEVILLA for all the accounts
![Page 3: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/3.jpg)
3
Introduction: 2 Authentications
• 1. Authentication with the User Interface
• 2. Authentication to the Grid.
Input password of the proxy (specified when you
shall execute myproxy-init)
Input password of the user account: GridSEVXX
sevillaXX
sevillaXX
![Page 4: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/4.jpg)
4
First Exercise
GENIUS logging in and base settings
![Page 5: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/5.jpg)
5
Outline of the exercise 1/2
• Login at your UI account (passwd: GridSEVXX)
• Store a proxy on a remote Myproxy Server machine with the command (using the passphrase SEVILLA):$myproxy-init --voms gilda
• Test to retrieve a local proxy from MyProxy server (not mandatory):$myproxy-get-delegation (must use your new MyProxy passphrase)
![Page 6: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/6.jpg)
6
Outline of the exercise 2/2• Verify your new local proxy*:
$voms-proxy-info --all
• Destroy your local proxy with the command and then inspect it* $voms-proxy-destroy
• Go on the https://glite-tutor.ct.infn.it (Preferences/Set VO VOMS), insert your Myproxy passphrase when requested and select the gilda VO.
• Come back on the terminal and execute voms-proxy-info --all
* - Do only if you delegated a proxy on the UI
![Page 7: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/7.jpg)
7
myproxy-init --voms gilda
Choose a new password;This password will be referred
as myproxy password
Password: SEVILLA
![Page 8: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/8.jpg)
8
Get credentials from the MyProxy srv
![Page 9: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/9.jpg)
9
Destroying local voms proxy
![Page 10: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/10.jpg)
10
The Genius Home Page
![Page 11: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/11.jpg)
11
Interactive:Set Desktop Password
Login the UI to set desktop password
Password is GridSEVXX
![Page 12: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/12.jpg)
12
Interactive:Set Desktop Password
Set Desktop password
![Page 13: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/13.jpg)
13
Interactive:Open Desktop
Input the password just set
![Page 14: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/14.jpg)
14
myproxy-init on interactive desktop
Password: SEVILLA
Choose a new password;This password will be referred
as myproxy password
![Page 15: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/15.jpg)
15
Getting proxy delegation
![Page 16: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/16.jpg)
16
One can destroy local proxy…
![Page 17: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/17.jpg)
17
authenticating on GENIUS with myproxy
GRID authentication
The password is the one set when issued the myproxy-init command
sevillaXX
![Page 18: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/18.jpg)
18
check again the proxy credentials
![Page 19: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/19.jpg)
20
Interactive: Close Desktop
![Page 20: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/20.jpg)
21
Second Exercise
Launch a job described by a JDL which already exists in the UI
• We suppose to have the JDL file and all the other required data (input sandbox files) on the UI and we shall try to submit the job on the GRID
![Page 21: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/21.jpg)
22
Authentication with MyProxy
![Page 22: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/22.jpg)
23
GRID Settings
1) SET VO: GILDA
2) SET Default services: LFC, RB, MxProxy, …
![Page 23: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/23.jpg)
24
Available resources (matchmaking)
![Page 24: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/24.jpg)
25
Resources available: matchmaking
![Page 25: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/25.jpg)
26
Job Submission: JDL file selection
![Page 26: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/26.jpg)
27
Job Submission: Ready to submit
![Page 27: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/27.jpg)
28
Job Submission: Choosing the RB
![Page 28: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/28.jpg)
29
Job successfully submitted
![Page 29: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/29.jpg)
30
Job completed successfully
![Page 30: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/30.jpg)
31
Retrieving Job results 1/3
![Page 31: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/31.jpg)
32
Retrieving Job results 2/3
![Page 32: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/32.jpg)
33
Retrieving job results 3/3
![Page 33: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/33.jpg)
34
Third Exercise
Preapare a job described by a JDL and store it on the UI
• In this exercise we are going to create a new file on the UI called hostnametest.jdl describing a simple job
![Page 34: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/34.jpg)
35
Login on the UI
![Page 35: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/35.jpg)
36
First step: create the JDL file
[ JobType = "Normal"; Executable = "/bin/hostname"; StdOutput = "std.out"; StdError = "std.err"; OutputSandbox = {"std.out","std.err"}; ]
![Page 36: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/36.jpg)
37
Inspecting our JDL
![Page 37: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/37.jpg)
38
Fourth Exercise
Submit the job described by the JDL created in the previous exercise
• In this exercise we are going to submit the job described by the JDL file edited in the previous step
![Page 38: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/38.jpg)
39
Submitting the JDL 1/4
![Page 39: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/39.jpg)
40
Submitting the JDL 2/4
![Page 40: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/40.jpg)
41
Submitting the JDL 3/4
![Page 41: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/41.jpg)
42
Submitting the JDL (4/4)
![Page 42: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/42.jpg)
43
Retrieving job results
![Page 43: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/43.jpg)
44
Resources matchmaking
![Page 44: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/44.jpg)
45
Fifth Exercise
Preparing a job described by the JDL with a file to ship in the input sandbox
• In this exercise we are going prepare the JDL description for a job which executes a shell script. The .sh file will be shipped to the CE through the input sendbox
![Page 45: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/45.jpg)
46
Step 1: Create the shell script
#!/bin/sh
MY_NAME="Your name"
WORKER_NODE_NAME=$(hostname)
echo "Hello $MY_NAME, from $WORKER_NODE_NAME"
ls -a
echo "This job is running on this CE: "
/opt/edg/bin/edg-brokerinfo getCE
![Page 46: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/46.jpg)
47
Step2: create the JDL file
[
Executable = "startScript.sh";
StdOutput = "std.out";
StdError = "std.err";
VirtualOrganisation = "gilda";
InputSandbox = {"startScript.sh"};
OutputSandbox = {"std.out","std.err",".BrokerInfo"};
RetryCount = 7;
]
![Page 47: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/47.jpg)
48
Sixth Exercise
Submitting the job prepared in the previous exercise
• In this exercise we are going submit the job which executes a shell script, prepared in the previous exercise. The .sh file will be shipped to the CE through the input sandbox
![Page 48: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/48.jpg)
49
List of available resources
![Page 49: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/49.jpg)
50
Step 1: submitting job
![Page 50: GENIUS Exercises](https://reader034.fdocuments.us/reader034/viewer/2022050809/56812c90550346895d913eb0/html5/thumbnails/50.jpg)
51
Step 2: retrieving the results