- Upload your job to your KoKo home directory using Globus, Filezilla or SCP.
- Create a script named {JOBNAME}.sh to start your job containing the following:
#!/bin/sh
#SBATCH –partition=defq
#SBATCH –ntasks=1
#SBATCH –mem-per-cpu=1024
#SBATCH –ntasks-per-node=1# Load modules, if needed, run staging tasks, etc…# Execute the java task
java -Xmx1g -Xms1g HelloWorld- Please adjust partition (queue), class name, memory, tasks and the heap sizes as needed.
- Run chmod +x {JOBNAME}.sh to make the job executable.
- Submit the job using the sbatch command.
sbatch {JOBNAME}.sh
Executing Java Jobs
Posted in How-To-Guides, HPC