Nadia LAJILI User Interface User Interface 4 Février 2002
Nadia LAJILI 2 Contents Installation User Interface UI Commands Examples Related Links
Nadia LAJILI 3 Installation RPM available in the package repository : Requirements : Python 2.1 Globus libraries Configuration à through only one file : /opt/edg/UI_ConfigENV.cfg Setup environment variables : $PYTHONPATH,$GLOBUS_LOCATION, etc… edg_env script
Nadia LAJILI 4 User Interface The main functionalities : - Submit a job - Find the list of the resources suitable to run a specific job - Cancel one or more submitted jobs - Retrieve the output files of a completed job Indeed the others main services needed such as : the resource broker, the information service, the job submission service, the logging and bookkeeping service, are already installed on the CERN testbed.
Nadia LAJILI 5 UI Commands You need a user certificate delivered by one of the CA of the DataGRID project Authentication via “grid-proxy-init” Create a Job Description file using the JDL Language.
Nadia LAJILI 6 MyJob.jdl # The name of the executable to be run Executable = "script.sh"; # The absolute path of the executable from the executing machine InputSandbox = {"$HOME/script.sh"}; # This file will contain the standard output of the job. StdOutput = "result.out"; # This file will contain the standard error of the job. StdError = "result.err"; # This attribute specifies the list of the files generated by the job # which will be retrieved after execution. OutputSandbox = {"result.out","result.err"};
Nadia LAJILI 7 MyJob.jdl To have more information about the values of these parameters and their meaning, please refer to the "JDL Attributes" document.
Nadia LAJILI 8 UI Commands To submit a job on the testbed platform : $ dg-job-submit MyJob.jdl main options : - resource the job will be submitted to this CE node. - notify basic information and status of the job are sent by . - hours user proxy duration in hours needed for submitting the job. Returned values : The job Id and the result of the submission
Nadia LAJILI 9 UI Commands Pour know about the status of the job : $ dg-job-status « » To retrieve the output of the job : $ dg-job-get-output « » Displays the list of identifiers of he resources accessible by the user And satisfying the job requirements included in the job description file. $ dg-job-list-match MyJob.jdl
Nadia LAJILI 10 UI Commands To cancel a job previously submitted with the dg-job-submit command : $ dg-job-cancel « » To have the formatted information contained in the : $ dg-job-id-info « »
Nadia LAJILI 11 Examples edg_env $ grid-proxy-init Your identity: /C=FR/O=CNRS/OU=CC-LYON/CN=xxxxxxx/ =xxxxxxxx Enter GRID pass phrase for this identity: Creating proxy Done Your proxy is valid until Thu Jan 31 04:18: $ dg-job-submit MyJob.jdl *************************************************************************************************** JOB SUBMIT OUTCOME The job has been successfully submitted to the Resource Broker. Use dg-job-status command to check job current status. Your job identifier (dg_jobId) is: - ***************************************************************************************************
Nadia LAJILI 12 Examples $ dg-job-get output « 771» Retrieving OutputSandbox files... ************************************************************************** JOB GET OUTPUT OUTCOME Output sandbox files for the job: - have been successfully retrieved and stored in the directory: /scratch/ **************************************************************************
Nadia LAJILI 13 Examples S dg-job-list-match MyJob.jdl *************************************************************************** COMPUTING ELEMENT IDs LIST The following CE(s) matching your job requirements have been found: - ccrdli05.in2p3.fr:2119/jobmanager-bqs-A - ccrdli05.in2p3.fr:2119/jobmanager-bqs-C - ccrdli05.in2p3.fr:2119/jobmanager-bqs-G - ccrdli05.in2p3.fr:2119/jobmanager-bqs-I - ccrdli05.in2p3.fr:2119/jobmanager-bqs-J - ccrdli05.in2p3.fr:2119/jobmanager-bqs-P - ccrdli05.in2p3.fr:2119/jobmanager-bqs-R - ccrdli05.in2p3.fr:2119/jobmanager-bqs-S - ccrdli05.in2p3.fr:2119/jobmanager-bqs-T - ccrdli05.in2p3.fr:2119/jobmanager-bqs-V - lxshare0220.cern.ch:2119/jobmanager-pbs-long - lxshare0220.cern.ch:2119/jobmanager-pbs-medium - lxshare0220.cern.ch:2119/jobmanager-pbs-short ***************************************************************************
Nadia LAJILI 14 Related Links WMS Software Le site Web DataGRID au centre de calcul: Le site Web du WP6-Testbed : Le site officiel du projet DataGRID :