180 likes | 338 Views
Using ThaiGrid with ThaiGrid Portal. Nopparat Nopkuat Thai National Grid Center nopparat_no@thaigrid.or.th. What is ThaiGrid Portal? How to use ThaiGrid Portal Portal Environment Job File Preparation Job Submission Summary. Agenda. Web interface facility for using grid
E N D
Using ThaiGrid with ThaiGrid Portal Nopparat Nopkuat Thai National Grid Center nopparat_no@thaigrid.or.th
What is ThaiGrid Portal? How to use ThaiGrid Portal Portal Environment Job File Preparation Job Submission Summary Agenda
Web interface facility for using grid User do not need to have grid knowledge Designed for submission of any generic job User's Certificate is not required to use the portal ThaiGrid Portal
Portal Architecture Control Center Local Machine
Login to Thaigrid Portal Prepare generic job Submit the job get the result How to use ThaiGrid Portal
Unique job name for identify your submitted job Job file archive format : .zip or gzipped tar (tar.gz, tgz) contain run.sh to tell the portal what to do Prepare a Job
Prepare a Job hello.c Makefile run.sh #include <stdio.h> int main(int argc,char *argv[]) { printf("Hello, World!\n"); return 0; } default: hello hello: hello.o #!/bin/sh ls -l tar zxvf hello.tar.gz ls -l make ls -l ./hello # tar czvf hello.tar.gz hello.c Makefile run.sh
output.txt any output redirect from system stdout error.txt any output redirect system stderr Output Files
Output Files - output.txt -catch_rsh /opt/gridengine/default/spool/compute-0-2/active_jobs/287.1/pe_hostfile compute-0-2 total 12 lrwxrwxrwx 1 thaigrid thaigrid 81 Jan 31 14:35 hello.tar.gz -> ... lrwxrwxrwx 1 thaigrid thaigrid 90 Jan 31 14:35 nopparat_no.Hello01.run.sh -> ... -rw-rw-r-- 1 thaigrid thaigrid 130 Jan 31 14:35 tmplIrDHT hello.c Makefile run.sh total 24 -rw-r--r-- 1 thaigrid thaigrid 109 Jan 30 10:01 hello.c lrwxrwxrwx 1 thaigrid thaigrid 81 Jan 31 14:35 hello.tar.gz -> ... -rw-r--r-- 1 thaigrid thaigrid 31 Jan 30 10:02 Makefile lrwxrwxrwx 1 thaigrid thaigrid 90 Jan 31 14:35 nopparat_no.Hello01.run.sh ->... -rw-r--r-- 1 thaigrid thaigrid 64 Jan 30 10:02 run.sh -rw-rw-r-- 1 thaigrid thaigrid 130 Jan 31 14:35 tmplIrDHT cc -c -o hello.o hello.c cc hello.o -o hello
Output Files – output.txt (cont'd) total 36 -rwxrwxr-x 1 thaigrid thaigrid 6788 Jan 31 14:35 hello -rw-r--r-- 1 thaigrid thaigrid 109 Jan 30 10:01 hello.c -rw-rw-r-- 1 thaigrid thaigrid 1512 Jan 31 14:35 hello.o lrwxrwxrwx 1 thaigrid thaigrid 81 Jan 31 14:35 hello.tar.gz -> ... -rw-r--r-- 1 thaigrid thaigrid 31 Jan 30 10:02 Makefile lrwxrwxrwx 1 thaigrid thaigrid 90 Jan 31 14:35 nopparat_no.Hello01.run.sh -> ... -rw-r--r-- 1 thaigrid thaigrid 64 Jan 30 10:02 run.sh -rw-rw-r-- 1 thaigrid thaigrid 130 Jan 31 14:35 tmplIrDHT Hello, World! Cleanup successful. Running globus job to {} output of ./hello