Install CRAB
Description | Install CRAB if a local installation is required |
Notes | We no longer use CRAB that is installed on interactive nodes, instead relying on CVMFS to host CRAB releases Guide is 99% out of date as of 2015 and will be removed and replaced shortly. ADMINS of hepcms: please consult our private Google pages for documentation. |
Dependencies | - CMSSW - CMSSW compatibility libs on interactive nodes - OSG client on node to submit jobs from including OSG certificates - CVMFS |
Guides | - site-info.def UI configuration settings - site-info.def VO configuration settings - CRAB |
Last modified | September 10, 2015 |
These instructions are for CRAB_2_8_6, but they can be adapted for newer releases. Note that gLite-UI is depreciated as of 2013 (replaced by the OSG client), and that we now use CRAB installed via CVMFS.
On the installation node as root (su -):
- If you do not already have certificates from OSG in /etc/grid-security/certificates, you'll need to download and install the lcg-CA package using yum:
cd /etc/yum.repos.d
wget "http://grid-deployment.web.cern.ch/grid-deployment/glite/repos/3.2/lcg-CA.repo"
yum install lcg-CA - Navigate to the gLite-UI tarball repository and select your desired version of gLite-UI. Download the tarballs:
mkdir /scratch/gLite
cd /scratch/gLite
wget "http://grid-deployment.web.cern.ch/grid-deployment/download/relocatable/glite-UI/SL5_x86_64/glite-UI-3.2.8-0.sl5.tar.gz"
wget "http://grid-deployment.web.cern.ch/grid-deployment/download/relocatable/glite-UI/SL5_x86_64/glite-UI-3.2.8-0.sl5-external.tar.gz"
mkdir glite-UI-3.2.8-0
ln -s glite-UI-3.2.8-0 gLite-UI
cd gLite-UI
tar zxvf ../glite-UI-3.2.8-0.sl5.tar.gz
tar zxvf ../glite-UI-3.2.8-0.sl5-external.tar.gz - Make your site-info.def file following the instructions linked above or by following our example. We place site-info.def in /scratch/gLite/gLite-UI. Note that gLite-UI is no longer needed, but we keep our file in that location for historical reasons. The site_info.def file may be needed by other applications.
If you follow our example, you need to modify the following variables to your site-specific settings: - INSTALL_ROOT = gLite-UI installation directory
- JAVA_LOCATION = get from which java
- SITE_YYY = your contact info
- VO_SW_DIR = top level directory containing the cmssoft/cms installation directory, which could be a symlink to your true CMSSW installation directory (see CMSSW installation guide), e.g., our VO_SW_DIR = /shareosft/osg/app, which contains cmssoft/cms, where cms is a symlink to /sharesoft/cmssw, our true CMSSW installation area (it's unclear if the cmssoft/cms directory syntax is required only by OSG or also by LCG)
- Navigate to the CRAB download page and select your desired version of CRAB. Download, install, and configure:
mkdir /scratch/crab
cd /scratch/crab
wget "http://cmsdoc.cern.ch/cms/ccs/wm/scripts/Crab/CRAB_2_8_6.tgz" tar -xzvf CRAB_2_8_6.tgz
ln -s CRAB_2_8_6 current
cd CRAB_2_8_6
./configure - If you wish to support the "scheduler=condor_g" option in CRAB (it's up to the host site if they want to support it), the below additional settings need to be placed inside the submitting node's condor configuration file. At UMD, this would be on the interactive nodes in /opt/condor/etc/condor_config.local.
GRIDMANAGER_MAX_PENDING_SUBMITS_PER_RESOURCE = 20
ENABLE_GRID_MONITOR = TRUE
GRIDMANAGER_MAX_SUBMITTED_JOBS_PER_RESOURCE = 1000
User instructions for getting the CRAB environment are here. gLite-UI is no longer needed and is replaced by the OSG client.