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
- Switch to the release_dir directory.
cd /path/to/HTCONDOR/htcondor-8_9_2/release_dir
- Create a condor.sh file.
- Create condor.sh.
vi condor.sh
- 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Run the following command to make the file take effect:
source condor.sh
- Create condor.sh.
- Switch to the release_dir/etc directory.
cd /path/to/HTCONDOR/htcondor-8_9_2/release_dir/etc
- Create and edit the condor_config file.
- Create a condor_config configuration file.
vi condor_config
- 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Create a condor_config configuration file.
- Create the condor user and condor user group.
groupadd -g 2001 condor useradd -u 2001 -g 2001 condor
- 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 *
- Configure the init.d service.
cp /path/to/HTCONDOR/htcondor-8_9_2/release_dir/etc/init.d/condor /etc/init.d/ -f
- Open the /etc/init.d/condor file.
vi /etc/init.d/condor
- 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" ...
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the /etc/init.d/condor file.
Parent topic: Deploying HTCondor