Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring HTCondor

This section describes how to configure HTCondor on a node, that is, perform configuration, and submit and execute tasks on a node.

Procedure

  1. Switch to the release_dir directory.
    cd /path/to/HTCONDOR/htcondor-8_9_2/release_dir
  2. Create a condor.sh file.
    1. Create condor.sh.
      vi condor.sh
    2. Press i to enter the insert mode and add the following content:
      export CONDOR_CONFIG=/path/to/HTCONDOR/htcondor-8_9_2/release_dir/etc/condor_config
      export PATH=/path/to/HTCONDOR/htcondor-8_9_2/release_dir/bin:/path/to/HTCONDOR/condor-8.9.2/release_dir/sbin:$PATH
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
    4. Run the following command to make the file take effect:
      source condor.sh
  3. Switch to the release_dir/etc directory.
    cd /path/to/HTCONDOR/htcondor-8_9_2/release_dir/etc
  4. Create and edit the condor_config file.
    1. Create a condor_config configuration file.
      vi condor_config
    2. Press i to enter the insert mode and modify the file as follows:
      CONDOR_HOST             = 192.168.47.111
      RELEASE_DIR             = /path/to/HTCONDOR/htcondor-8_9_2/release_dir
      LOCAL_DIR               = /data/
      LOCAL_CONFIG_DIR        = $(LOCAL_DIR)/config
      LOCAL_CONFIG_FILE       = $(LOCAL_DIR)/condor_config.local
      CONDOR_ADMIN            = root@192.168.47.111
      MAIL                    = /usr/bin/mail
      ALLOW_ADMINISTRATOR     = $(CONDOR_HOST)
      ALLOW_NEGOTITATOR       = $(CONDOR_HOST)
      LOCK                    = $(LOG)
      CONDOR_IDS              = 2001.2001
      
      use SECURITY : HOST_BASED
      
      LOG                     = $(LOCAL_DIR)/log
      SPOOL                   = $(LOCAL_DIR)/spool
      BIN                     = $(RELEASE_DIR)/bin
      LIB                     = $(RELEASE_DIR)/lib
      SBIN                    = $(RELEASE_DIR)/sbin
      LIBEXEC                 = $(RELEASE_DIR)/libexec
      HISTORY                 = $(RELEASE_DIR)/history
      
      
      MASTER_LOG              = $(LOG)/MasterLog
      SCHEDD_LOG              = $(LOG)/SchedLog
      SHADOW_LOG              = $(LOG)/ShadowLog
      
      SHADOW_LOCK             = $(LOCK)/ShadowLock
      
      DAEMON_LIST = COLLECTOR MASTER NEGOTIATOR SCHEDD STARTD
      CONDOR_HOST = $(CONDOR_HOST)
      USE_CLONE_TO_CREATE_PROCESSES = False
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Create the condor user and condor user group.
    groupadd -g 2001 condor
    useradd -u 2001 -g 2001 condor
  6. Create the directories and files of HTCondor.
    mkdir -p /data
    cd /data
    mkdir -p config  examples  execute  log  spool
    touch condor_config.local
    touch log/MasterLog log/SchedLog log/ShadowLog log/ShadowLock
    chown -R condor.condor *
  7. Configure the init.d service.
    cp /path/to/HTCONDOR/htcondor-8_9_2/release_dir/etc/init.d/condor /etc/init.d/ -f
    1. Open the /etc/init.d/condor file.
      vi /etc/init.d/condor
    2. Press i to enter the insert mode and modify the file as follows:
      ...
      # Path to your primary condor configuration file.
      CONDOR_CONFIG="/path/to/HTCONDOR/htcondor-8_9_2/release_dir/etc/condor_config"
      
      # Path to condor_config_val
      CONDOR_CONFIG_VAL="/path/to/HTCONDOR/htcondor-8_9_2/release_dir/bin/condor_config_val"
      ...
    3. Press Esc, type :wq!, and press Enter to save the file and exit.