How to install a personal condor
-
Upload
gtelzur -
Category
Self Improvement
-
view
2.133 -
download
1
description
Transcript of How to install a personal condor
How to Install a Personal
Condor on Your Windows
LaptopLaptop
Guy Tel-Zur
Ben-Gurion University of the Negev
Download Condor
• Condor home page:• Condor home page:
– http://www.cs.wisc.edu/condor
• Download link:
– http://www.cs.wisc.edu/condor/downloads-
v2/download.pl
• For Windows I recommend the msi installer
Start the Installer
In these slides: Version 7.4.2. Released on April 6, 2010 is demonstrated
Accept the license
We want a local, personal, installation
I want my jobs to start immediately
Leave the domain blank
You can leave these blank as well
Condor automatically detects
your Java installation
Don’t worry too much about this, we will
see how to correct/edit things later
Here, we install only the good old “Classic” features, no VM
…and no Hadoop support
Cont’
Click on Install
Click on Install
(needs administrator’s privileges)
Wait until this step will finish
You will have to restart your system
restart
The Condor service should be started
If needed restart the service here
Check the Tasks ManagerCheck the Tasks ManagerCheck the Tasks ManagerCheck the Tasks Manager
for the Condor daemonsfor the Condor daemonsfor the Condor daemonsfor the Condor daemons
Edit/Correct the condor_config file:
the host is set to localhost
Set the right Network Interface in
the condor_config.local
You will find both configuration files under the install dir c:\condor
condor_status
Good! So now we have a Personal Condor running on my laptop ☺
Let’s write a short C program and check
Condor: my own cpu_burn version:
#include <math.h>
#include <stdio.h>
int main() {
int iMAX = 60000;
int i,j;
float fNORM, fMAX;float fNORM, fMAX;
float x,y;
fMAX = iMAX; // convert to float
fNORM = fMAX * fMAX;
for (j=0;j<iMAX;j++)
for (i=0;i<iMAX;i++) {
y = i; // convert to float
x = y*y/fNORM;
}
return 0;
}
Just copy & paste the code to
your favorite IDE and compile
In a text editor create your
submit file:universe = vanilla
executable = cpu_burn.exe
Error =
err.$(Cluster).$(Process)
Output =
out.$(Cluster).$(Process)
Log = log.$(Cluster).$(Process)
You should have in the
same folder the
executable and the
submit file
Log = log.$(Cluster).$(Process)
Queue 5
Submit 5 jobs
Watch the Task ManagerThe heat is on
Check with condor_q the
progress of your jobs
All jobs were processed
Condor daemons while
executing cpu_burn
Check the logfile that was
created
000 (088.001.000) 04/26 10:23:10 Job submitted from host:
<127.0.0.1:50486>
...
001 (088.001.000) 04/26 10:23:19 Job executing on host: <127.0.0.1:50487>
...
005 (088.001.000) 04/26 10:24:20 Job terminated.005 (088.001.000) 04/26 10:24:20 Job terminated.
(1) Normal termination (return value 0)
Usr 0 00:00:27, Sys 0 00:00:00 - Run Remote Usage
Usr 0 00:00:00, Sys 0 00:00:00 - Run Local Usage
Usr 0 00:00:27, Sys 0 00:00:00 - Total Remote Usage
Usr 0 00:00:00, Sys 0 00:00:00 - Total Local Usage
0 - Run Bytes Sent By Job
15686 - Run Bytes Received By Job
0 - Total Bytes Sent By Job
15686 - Total Bytes Received By Job
...
That’s it
Send your comments/suggestions to
Guy Tel-Zur
gtelzur at bgu dot ac dot il