Version 19 (modified by mmamonski, 12 years ago) (diff) |
---|
Introduction
The QCG-SimpleClient is a basic client utility used to submit jobs to the QCG-Broker service (a QosCosGrid meta-scheduler). Its job description format (QCG-Script) and command tools syntax were intentionally modelled after local batch systems "look && feel". Thus, the learning effort needed for a new users (that have some experience with local cluster systems) was very limited. The QCG-SimpleClient allow you to submit MUSCLE job in the coherent way to any single PL-Grid site. Unfortunately current version of QCG-Script do not support description of more advance experiments like co-allocated (cross-cluster) simulations, workflows or parameter sweep. You need to use QCG-AdvancedClient instead.
User Interface Machine
Every cluster in PL-Grid can be accessed from the QCG UI machine: qcg.man.poznan.pl. You can log in there using your PL-Grid account:
ssh plg[your-id]@qcg.man.poznan.pl
Preparing credentials
- Copy your credentials (PKCS12 keystore) to the qcg machine:
scp plg[your-id].p12 plg[your-id]@qcg.man.poznan.pl:~/
- Create ~/.globus directory
mkdir ~/.globus
- Convert your credentials to the .pem format
$ openssl pkcs12 -nocerts -in usercred.p12 -out ~/.globus/userkey.pem $ openssl pkcs12 -clcerts -nokeys -in usercred.p12 -out ~/.globus/usercert.pem $ chmod 644 ~/.globus/usercert.pem $ chmod 400 ~/.globus/userkey.pem
Submitting Simple Bash job
- Example job script:
$cat hostname.qcg #cluster where to run a job #QCG host=zeus.cyfronet.pl #QCG output=output.txt #QCG error=error.txt /bin/hostname date sleep 30 date sleep 30 date
- job submission:
$qcg-sub hostname.qcg https://elder6.man.poznan.pl:8443/qcg/services/ /C=PL/O=GRID/O=PSNC/CN=qcg-broker/qcg-broker.man.poznan.pl UserDN = /C=PL/O=GRID/O=PSNC/CN=Mariusz Mamonski ProxyLifetime = 23 Days 11 Hours 54 Minutes 8 Seconds jobId = J1349800941529__3789
- list all your jobs:
qcg-list https://elder6.man.poznan.pl:8443/qcg/services/ /C=PL/O=GRID/O=PSNC/CN=qcg-broker/qcg-broker.man.poznan.pl UserDN = /C=PL/O=GRID/O=PSNC/CN=Mariusz Mamonski ProxyLifetime = 23 Days 11 Hours 53 Minutes 52 Seconds JOB IDENTIFIER TASK NOTE SUBMISSION TIME START TIME FINISH TIME STATUS HOSTNAME J1349800941529__3789 task 09.10.12 18:42 PENDING zeus Number of tasks: PENDING : 1 TOTAL: 1
- get job info:
> qcg-info J1349800941529__3789 https://elder6.man.poznan.pl:8443/qcg/services/ /C=PL/O=GRID/O=PSNC/CN=qcg-broker/qcg-broker.man.poznan.pl UserDN = /C=PL/O=GRID/O=PSNC/CN=Mariusz Mamonski ProxyLifetime = 23 Days 11 Hours 52 Minutes 53 Seconds Note: TaskType: SINGLE SubmissionTime: Tue Oct 09 18:42:21 CEST 2012 FinishTime: ProxyLifetime: P23DT11H52M51S Status: RUNNING StatusDesc: StartTime: Tue Oct 09 18:42:21 CEST 2012 Allocation: HostName: zeus.cyfronet.pl ProcessesCount: 1 ProcessesGroupId: Status: RUNNING StatusDescription: SubmissionTime: Tue Oct 09 18:42:21 CEST 2012 FinishTime: LocalSubmissionTime: Tue Oct 09 18:42:24 CEST 2012 LocalStartTime: Tue Oct 09 18:42:54 CEST 2012 LocalFinishTime:
Further reading
Attachments
-
QCG-SimpleClient-CheatSheet.pdf
(117.6 KB) - added by mmamonski 12 years ago.
QCG-SimpleClient? Cheat Cheet