Support for OpenLava versions 2.2/3.x?

251 views
Skip to first unread message

Andrew MacBride

unread,
May 9, 2016, 10:18:36 PM5/9/16
to Nextflow
Hello,

I was looking at running one of my existing NextFlow pipelines on an LSF cluster (OpenLava 2.2/3.x), but the current LsfExecutor.groovy seems to generate bsub commands in .command.run that OpenLava 2.2/3.1 doesn't understand.

In particular, it's trying to the set the CWD:

result << '-cwd' << task.workDir.toString()

...but the current versions of OpenLava's bsub don't support it. (It interprets it as a CPULIMIT specifier, the -c flag).

bsub -I "ls /tmp"
Job <3> is submitted to default queue <normal>.
vs.
bsub -I -cwd "/tmp" "ls /tmp"
wd: Bad CPULIMIT specification. Job not submitted.



The generated script:
#!/bin/bash
#BSUB -cwd /nfs/nextflow/work/4a/544a1111e5ba226fd60be0f9627282
#BSUB -o /nfs/nextflow/work/4a/544a1111e5ba226fd60be0f9627282/.command.log
#BSUB -J nf-startup_(1)
[etc.]

Is there any workaround? (Or am I missing something?)

Thanks,
Andrew

Paolo Di Tommaso

unread,
May 10, 2016, 12:14:55 AM5/10/16
to nextflow
Hi Andrew, 

It looks that Open Lava is not 100% with LSF. There's no immediate workaround but this could be a good opportunity to implement an explicit support for it in Nextflow.  

What is directive that OpenLava expects to set the job working directory? 


Cheers,
Paolo



--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/nextflow.
For more options, visit https://groups.google.com/d/optout.

Andrew MacBride

unread,
May 11, 2016, 12:40:25 AM5/11/16
to Nextflow
Hi Paolo,

I haven't found anything obvious that allows one to set the working directory, but I've asked on the OpenLava list, and will let you know if I hear anything. (The $LS_SUBCWD env var shows the submission directory, but it's read-only.)

Many thanks,
Andrew

Andrew MacBride

unread,
May 11, 2016, 1:01:05 AM5/11/16
to Nextflow
I've fiddled around myself, and this seems to work (adding an explicit cd to the command), but is somewhat awkward.

bsub  -I 'cd /tmp; pwd'

Would that suffice for a future OpenLavaExecutor.groovy?


Best,
Andrew

Paolo Di Tommaso

unread,
May 11, 2016, 4:26:22 AM5/11/16
to nextflow
Actually the setting of the working directory is redundant because the job is launched in that folder. 

I'm wondering if could be enough to remove the `-cwd` option from the LSF executor to make it compatible with OpenLava. 

Please let's continue this discussion here 



Cheers, p
Reply all
Reply to author
Forward
0 new messages