Executing Java Jobs

  1. Upload your job to your KoKo home directory using Globus, Filezilla or SCP.
  2. Create a script named {JOBNAME}.sh to start your job containing the following:
  3. #!/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
  4.  Please adjust partition (queue), class name, memory, tasks and the heap sizes as needed.
  5. Run chmod +x {JOBNAME}.sh to make the job executable.
  6. Submit the job using the sbatch command.sbatch {JOBNAME}.sh
Posted in How-To-Guides, HPC