Repository navigation
Description
I am running on a university cluster with a SLURM submission scheduler. I installed conda and sourced the pangeo environment without error.
I git cloned this repo, opened python and tried
(pangeo) [b.weinstein@gator4 dask-jobqueue]$ python
Python 3.6.4 | packaged by conda-forge | (default, Dec 23 2017, 16:31:06)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from dask_jobqueue import SLURMCluster
>>>
>>> cluster = SLURMCluster(project="ewhite")
>>> cluster.start_workers(10)
sbatch: error: Invalid argument: ewhite
sbatch: error: Invalid argument: ewhite
sbatch: error: Invalid argument: ewhite
sbatch: error: Invalid argument: ewhite
sbatch: error: Invalid argument: ewhite
sbatch: error: Invalid argument: ewhite
sbatch: error: Invalid argument: ewhite
sbatch: error: Invalid argument: ewhite
sbatch: error: Invalid argument: ewhite
sbatch: error: Invalid argument: ewhite
[2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
Where ewhite is the group tag (see below).
In previous submission scripts, I would typically start with something like
#!/bin/bash
#SBATCH --job-name=NEON_LIDAR # Job name
#SBATCH --mail-type=END
#SBATCH --mail-user=#######@gmail.com
#SBATCH --account=ewhite
#SBATCH --qos=ewhite-b
#SBATCH --ntasks=1 # Number of MPI ranks
#SBATCH --cpus-per-task=1 # Number of cores per MPI rank
#SBATCH --mem=4000
#SBATCH --time=00:59:00 #Time limit hrs:min:sec
#SBATCH --output=NEON_LIDAR.out # Standard output and error log
#SBATCH --error=NEON_LIDAR.err
which works without a problem.
Attempts
I changed
#SBATCH -A %(project)s
to
#SBATCH --account %(project)s
to match previous submission scripts. No change.
So I tried removing the line, which yielded
>>> cluster.start_workers(10)
sbatch: error: Invalid argument: 00:30:00
sbatch: error: Invalid argument: 00:30:00
sbatch: error: Invalid argument: 00:30:00
...
This is an error in the walltime argument. This makes me believe that it doesn't have to do with the argument value, but how all the arguments are parsed and passed to bash. The most likely explanation is that i'm calling this script from an incorrect location, and the variable expansion or quotes are not being parsed in the way I anticipate.
Activity
bw4sz commentedon Mar 20, 2018
If its useful, similar error was reported here, sbatch would not accept spaces. I'll trying to look around and see how/if this could be connected.
mrocklin commentedon Mar 20, 2018
bw4sz commentedon Mar 20, 2018
I'm still playing with it. Its not clear to me exactly where it is failing. I added a logger to see from sys out,
but I never see the command called.
It yields
but its clear that core should first log the cmd, and that will give us a sense for the parsing.
Line 79
I've tried manually removing the spacing, but without see the cmd parse, i'm guessing a bit. All thoughts welcome.
Quote dask-worker executable
mrocklin commentedon Mar 20, 2018
bw4sz commentedon Mar 20, 2018
Same behavior.
Am I correct in assessing the problem as it adding a space, " ewhite"? I'll be back tomorrow morning.
mrocklin commentedon Mar 21, 2018
I don't know. I don't personally have much experience here. You might try creating a SLURM cluster, seeing the template that it produces, and then trying to use that template manually, making sufficient tweaks as necessary. This might allow you to diagnose the problem with the dask-jobqueue project out of the pitcture..
bw4sz commentedon Mar 21, 2018