Getting started: Installing a single node Condor pool

Install the condor package.

[root@eeyore ~]# yum -y install condor

You’ll get classads and gsoap as well.

Start Condor.

[root@eeyore ~]# service condor start
Starting Condor daemons:                                   [  OK  ]

Take a look at your new Personal Condor setup.

[root@eeyore ~]# condor_q

-- Submitter: localhost.localdomain :  : localhost.localdomain
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD               

0 jobs; 0 idle, 0 running, 0 held
[root@eeyore ~]# condor_status

Name               OpSys      Arch   State     Activity LoadAv Mem   ActvtyTime

slot1@localhost.lo LINUX      X86_64 Unclaimed Idle     0.510   940  0+00:00:04
slot2@localhost.lo LINUX      X86_64 Unclaimed Idle     0.000   940  0+00:00:05
slot3@localhost.lo LINUX      X86_64 Unclaimed Idle     0.000   940  0+00:00:06
slot4@localhost.lo LINUX      X86_64 Unclaimed Idle     0.000   940  0+00:00:07
                     Total Owner Claimed Unclaimed Matched Preempting Backfill

        X86_64/LINUX     4     0       0         4       0          0        0

               Total     4     0       0         4       0          0        0

Test it out with a job, as yourself.

Write a job submit file.

09:22:46am> eeyore:~ $ cat > first.job
cmd = /bin/cat
args = /proc/self/status
output = first.job.$(cluster).$(process).out
error = first.job.$(cluster).$(process).err
log = first.job.log
queue 3
^D

Submit your job.

09:24:23am> eeyore:~ $ condor_submit first.job 
Submitting job(s)...
Logging submit event(s)...
3 job(s) submitted to cluster 1.

Check the queue for your jobs.

09:24:39am> eeyore:~ $ condor_q

-- Submitter: localhost.localdomain :  : localhost.localdomain
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD               
   1.0   matt            7/26 09:24   0+00:00:00 I  0   0.1  cat /proc/self/sta
   1.1   matt            7/26 09:24   0+00:00:00 I  0   0.1  cat /proc/self/sta
   1.2   matt            7/26 09:24   0+00:00:00 I  0   0.1  cat /proc/self/sta

3 jobs; 3 idle, 0 running, 0 held

(Write a little in your blog and miss the jobs running.)

09:24:47am> eeyore:~ $ condor_q
-- Submitter: localhost.localdomain :  : localhost.localdomain
 ID      OWNER            SUBMITTED     RUN_TIME ST PRI SIZE CMD               

0 jobs; 0 idle, 0 running, 0 held

Check the output.

09:25:01am> eeyore:~ $ l first.job*
4.0K -rw-------. 1 matt matt  157 Jul 26 09:24 first.job
   0 -rw-------. 1 matt matt    0 Jul 26 09:24 first.job.1.0.err
   0 -rw-------. 1 matt matt    0 Jul 26 09:24 first.job.1.2.err
   0 -rw-------. 1 matt matt    0 Jul 26 09:24 first.job.1.1.err
4.0K -rw-------. 1 matt matt  871 Jul 26 09:24 first.job.1.0.out
4.0K -rw-------. 1 matt matt  871 Jul 26 09:24 first.job.1.2.out
4.0K -rw-------. 1 matt matt  871 Jul 26 09:24 first.job.1.1.out
4.0K -rw-------. 1 matt matt 1.8K Jul 26 09:24 first.job.log

The jobs can be found in the queue’s history.

09:28:59am> eeyore:~ $ condor_history
 ID      OWNER            SUBMITTED     RUN_TIME ST   COMPLETED CMD            
   1.2   matt            7/26 09:24   0+00:00:00 C   7/26 09:24 /bin/cat /proc/
   1.0   matt            7/26 09:24   0+00:00:00 C   7/26 09:24 /bin/cat /proc/
   1.1   matt            7/26 09:24   0+00:00:00 C   7/26 09:24 /bin/cat /proc/

It is just that simple.

Advertisements

Tags: , , ,

2 Responses to “Getting started: Installing a single node Condor pool”

  1. Getting started: Creating a multiple node Condor pool « Spinning Says:

    […] you have read how to setup a personal condor, the next step is to add more […]

  2. Getting started: Condor and EC2 – EC2 execute node « Spinning Says:

    […] Once the instance is up and running, login and sudo yum install condor. Note, until BZ656562 is resolved, you will have to sudo mkdir /var/run/condor; sudo chown condor.condor /var/run/condor before starting condor. Start condor with sudo service condor start to get a personal condor. […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: