Enabling Grids for E-sciencE Workload Management System on gLite middleware - commands Matthieu Reichstadt CNRS/IN2P3 ACGRID School, Hanoi (Vietnam) November 5th, 2007
ACGrid School 5-9/ Enabling Grids for E-sciencE Create a proxy : voms-proxy-init –voms – Enter your certificate’s password – Get your proxy Submit the job: edg-job-submit mytest.jdl – You get your job unique identifier (JobId) Get the job status : edg-job-status JobId – Request the L&B in order to know the status of your job When the job status is “OutputReady” you cabn get the output : edg-job-get-output JobId – The system returns the output in a temporary folder on the UI
ACGrid School 5-9/ Enabling Grids for E-sciencE Minimal version ( helloworld.jdl) We specify : – The executable – STDOUT and STDERR Executable = “/bin/echo”; Arguments = “Hello world”; StdError = “hello.out”; StdOutput = “hello.err”; OutputSandbox = {“hello.out”, “hello.err”};
ACGrid School 5-9/ Enabling Grids for E-sciencE Get the proxy reichma]$ voms-proxy-init --voms auvergrid:/Role=lcgadmin Your identity: /O=GRID-FR/C=FR/O=CNRS/OU=LPC/CN=Matthieu Reichstadt Enter GRID pass phrase: Creating temporary proxy Done Contacting cclcgvomsli01.in2p3.fr:15002 [/O=GRID- FR/C=FR/O=CNRS/OU=CC- LYON/CN=cclcgvomsli01.in2p3.fr] "auvergrid" Done Creating proxy Done Your proxy is valid until Sun Nov 4 19:58:
ACGrid School 5-9/ Enabling Grids for E-sciencE Job submission test]$ edg-job-submit --vo auvergrid helloworld.jdl Selected Virtual Organisation name (from --vo option): auvergrid Connecting to host lapp-rb01.in2p3.fr, port 7772 Logging to host lapp-rb01.in2p3.fr, port 9002 ************************************************************************************** JOB SUBMIT OUTCOME The job has been successfully submitted to the Network Server. Use edg-job-status command to check job current status. Your job identifier (edg_jobId) is: - ************************************************************************************** JobId
ACGrid School 5-9/ Enabling Grids for E-sciencE Get the Job status test]$ edg-job-status rb01.in2p3.fr:9000/zGuUkhru2xQzZZzPAbB2H ************************************************************* BOOKKEEPING INFORMATION: Status info for the Job : Current Status: Done (Success) Exit code: 0 Status Reason: Job terminated successfully Destination: iut15auvergridce01.univ-bpclermont.fr:2119/jobmanager- lcgpbs-auvergrid reached on: Sun Nov 4 07:08: *************************************************************
ACGrid School 5-9/ Enabling Grids for E-sciencE Get the job output test]$ edg-job-get-output rb01.in2p3.fr:9000/zGuUkhru2xQzZZzPAbB2H Retrieving files from host: lapp-rb01.in2p3.fr ( for rb01.in2p3.fr:9000/zGuUkhru2xQzZZzPAbB2H ) ********************************************************************************* JOB GET OUTPUT OUTCOME Output sandbox files for the job: - have been successfully retrieved and stored in the directory: /tmp/jobOutput/reichma_zGuUkhru2xQzZZzPAbB2Hw ********************************************************************************* test]$ cat /tmp/jobOutput/reichma_zGuUkhru2xQzZZzPAbB2Hw/hello.out Hello World
ACGrid School 5-9/ Enabling Grids for E-sciencE edg-job-submit [–r ] [-c ] [-o ] [--vo ] – -r : the job is directly submitted to the CE identified by – -c : uses the configuration file in order to overload the default values of the UI – -o : returns the jobID in – --vo : the virtual organization on which the job is submitted
ACGrid School 5-9/ Enabling Grids for E-sciencE edg-job-list-match Lists the resources corresponding to the job description Allows he user to know the result of the scheduling without submitting the job. edg-job-cancel [–i ] Cancels the job. edg-job-status [–i ] Gets the job status. edg-job-get-output [--dir ] [–i ] Gets the content of the OutputSandbox edg-job-get-logging-info [–i ] Displays the informations on the status taken by the job during his life cycle.
ACGrid School 5-9/ Enabling Grids for E-sciencE Thank you