Difference between revisions of "Htc test grid"

From T2B Wiki
Jump to navigation Jump to search
(Created page with "=== HTC grid submission test === First create a proxy and copy it into your home directory: <pre> voms-proxy-init --voms beapps cp -a -p /tmp/x509up_u`id -u` ./ </pre> Why is...")
 
 
Line 34: Line 34:
 
# Run job once
 
# Run job once
 
queue
 
queue
 +
</pre>
 +
 +
Don't forget to create the shell script mentioned in the *.sub:
 +
<pre>
 +
#!/bin/bash                                                                                                   
 +
sleep 180
 +
id
 +
pwd
 +
date
 +
/usr/bin/hostname
 +
env
 +
</pre>
 +
 +
And then you submit exactly the same way as for a local submission:
 +
<pre>
 +
condor_submit ce_test.sub
 
</pre>
 
</pre>

Latest revision as of 13:48, 31 July 2020

HTC grid submission test

First create a proxy and copy it into your home directory:

voms-proxy-init --voms beapps
cp -a -p /tmp/x509up_u`id -u` ./

Why is it needed to have your proxy in your homedir? Because it must be available to the schedd and that the /user has also been mounted on the schedd machine for this reason. (The picture that you have to keep in mind here is that you are using a remote schedd that will submit the job on your behalf to the CE.)

Now let's create the *.sub file (ce_test.sub):

# Required for remote HTCondor-CE submission                                                                    
universe = grid
use_x509userproxy = true
x509userproxy = /user/sgerard/x509up_u20533
grid_resource = condor testumd-htcondorce.iihe.ac.be testumd-htcondorce.iihe.ac.be:9619

# Files
executable = ce_test.sh
output = ce_test.out
error = ce_test.err
log = ce_test.log

# File transfer behavior
ShouldTransferFiles = YES
WhenToTransferOutput = ON_EXIT

# Optional resource requests
#+xcount = 4            # Request 4 cores
#+maxMemory = 4000      # Request 4GB of RAM
#+maxWallTime = 120     # Request 2 hrs of wall clock time
#+remote_queue = "osg"  # Request the OSG queue

# Run job once
queue

Don't forget to create the shell script mentioned in the *.sub:

#!/bin/bash                                                                                                     
sleep 180
id
pwd
date
/usr/bin/hostname
env

And then you submit exactly the same way as for a local submission:

condor_submit ce_test.sub