How to install a personal condor

32
How to Install a Personal Condor on Your Windows Laptop Guy Tel-Zur Ben-Gurion University of the Negev

description

 

Transcript of How to install a personal condor

Page 1: 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

Page 2: How to install a personal condor

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

Page 3: How to install a personal condor

Start the Installer

In these slides: Version 7.4.2. Released on April 6, 2010 is demonstrated

Page 4: How to install a personal condor

Accept the license

Page 5: How to install a personal condor

We want a local, personal, installation

Page 6: How to install a personal condor

I want my jobs to start immediately

Page 7: How to install a personal condor

Leave the domain blank

Page 8: How to install a personal condor

You can leave these blank as well

Page 9: How to install a personal condor

Condor automatically detects

your Java installation

Page 10: How to install a personal condor

Don’t worry too much about this, we will

see how to correct/edit things later

Page 11: How to install a personal condor

Here, we install only the good old “Classic” features, no VM

Page 12: How to install a personal condor

…and no Hadoop support

Page 13: How to install a personal condor

Cont’

Click on Install

Page 14: How to install a personal condor

Click on Install

(needs administrator’s privileges)

Page 15: How to install a personal condor

Wait until this step will finish

Page 16: How to install a personal condor
Page 17: How to install a personal condor

You will have to restart your system

restart

Page 18: How to install a personal condor

The Condor service should be started

If needed restart the service here

Page 19: How to install a personal condor

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

Page 20: How to install a personal condor

Edit/Correct the condor_config file:

the host is set to localhost

Page 21: How to install a personal condor

Set the right Network Interface in

the condor_config.local

You will find both configuration files under the install dir c:\condor

Page 22: How to install a personal condor

condor_status

Good! So now we have a Personal Condor running on my laptop ☺

Page 23: How to install a personal condor

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;

}

Page 24: How to install a personal condor

Just copy & paste the code to

your favorite IDE and compile

Page 25: How to install a personal condor

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

Page 26: How to install a personal condor

Submit 5 jobs

Page 27: How to install a personal condor

Watch the Task ManagerThe heat is on

Page 28: How to install a personal condor

Check with condor_q the

progress of your jobs

Page 29: How to install a personal condor

All jobs were processed

Page 30: How to install a personal condor

Condor daemons while

executing cpu_burn

Page 31: How to install a personal condor

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

...

Page 32: How to install a personal condor

That’s it

Send your comments/suggestions to

Guy Tel-Zur

gtelzur at bgu dot ac dot il