Use the bsub -yaml command option to submit a job with a YAML file to
specify job submission options.
Procedure
-
Create a YAML file with the job submission options.
For more information on the syntax of the key names and values in the YAML file,
see bsub
-yaml.
For the following job submission
command:
bsub -r -H -N -Ne -i /tmp/input/jobfile.sh -outdir /tmp/output -C 5 -c 2022:12:12 -cn_mem 256 -hostfile /tmp/myHostFile.txt -q normal -G myUserGroup -u "user@example.com" myjob
The following YAML file specifies the equivalent job submission
command:
io:
inputFile: /tmp/input/jobfile.sh
outputDir: /tmp/output
limit:
coreLimit: 5
cpuTimeLimit: 2022:12:12
resource:
computeNodeMem: 256
hostFile: /tmp/myHostFile.txt
properties:
queueName: normal
rerun: null
schedule:
hold: ""
userGroup: myUserGroup
notify:
notifyJobDone: ""
notifyJobExit:
mailUser: user@example.com
command: myjob
-
Use the bsub -yaml command to submit a job with the YAML file that you
created.