Wednesday, December 10, 2008

Installing Condor in OSX 10.5

I found this process in a weird place on condor's site ... it was in the tutorials under Administration Tutorial. At the same time this worked. The only thing I did differently was to download the Condor package for Intel Mac 10.4. Sorry but you will have to do all of this from the terminal window. Beyond that everything else worked. So here is my "workflow" lol...

  1. Downloaded Condor for Intel Mac 10.4 (In my case I used 7.0.5).
  2. Opened terminal (Hard drive --> Applications --> Utilities --> Terminal)
  3. Logged in to my root account with "su" and then typed in my password (If you dont know your root password your boned lol ok seriously you need to either see your system administrator or try this out but if your root account just isnt on check out this link
  4. Type "useradd condor" and press [Enter]
  5. Type "chmod a+rx ~condor" and press [Enter]
  6. Type "cd /" and press [Enter]
  7. Type "mkdir condor" and press [Enter]
  8. Type "cd /condor" and press [Enter]
  9. Type "cp /Users/jeaimepowell/Desktop/condor-7.0.5-MacOSX10.4-x86-dynamic.tar.gz /condor/" and press [Enter]
  10. Type "tar -xzf condor-7.0.5-MacOSX10.4-x86-dynamic.tar.gz " and press [Enter]
  11. Type "cd condor-7.0.5" and press [Enter]
  12. Type "./condor_configure --install --install-dir=/condor/condor \ --local-dir=/condor/condor/var --owner=condor
    " and press [Enter] (I got some errors but it installed)
  13. Type "ln -s /condor/condor/etc/condor_config ~condor/" and press [Enter]
  14. Type "PATH=$PATH:/condor/condor/bin/:/condor/condor/sbin/" and press [Enter]
  15. Type "nano /condor/condor/etc/condor_config" and press [Enter]
  16. Look through the file in Part 2 until you find "HOSTALLOW_WRITE =" and remover the text after it and just have a "*"
  17. Press [ctrl] [x] and press "Y" then hit [enter] twice
  18. Type "condor_master" and press [Enter]
  19. Type "ps -ef |grep condor" and press [Enter] (you should see a bunch of condor processes running
  20. After a half a minute or so you should be able to type "condor_status" and actually see your machine on the node.
  21. You are done!

Installing Condor the easy-easy way

So I have to be honest here... the traditional install of condor using the "Newer Unix Install" has kicked my butt. I ran into permission issues, directory location issues,environmental variable issues, hostname issues and all other sorts problems I would rather forget. Well as a last ditch effort and kind of as a joke to myself I decided to install Fedora (FC10) and look in the package manager (In Gnome "System-->Administration-->Add/Remove Software) for Condor. To my complete shock it was there under "Condor:High Throughput Computing"!!! I checked it and it installed and get this...I typed "condor_status" in the terminal window and boom-bam it was working!! The main condor folder (release directory) is all over the place in the system but the bastard just works. So just to lay it out in a non ubber geek way:
  1. Install Fedora (I used FC10 but I dont know if it is in other cores)
  2. Open "System-->Administration-->Add/Remove Software"
  3. Search for Condor (type it in the search box and hit enter)
  4. Put a check next to "Condor:High Throughput Computing" (I checked the Condor headers one too but I dont know if it is necessary)
  5. Click "Apply" (In my case it also added a few other dependencies automagically so dont be worried if you see that)
  6. When it is done open a terminal window (Applications --> System Tools --> Terminal)
  7. Type "condor_status" and you should see a status with one node.
  8. You are done!!
So to fellow grad students and techs trying to get Condor running I hope this helps!! And just to put it out there, the all powerful condor_config file is located in the /etc/condor folder.

Good Luck!!