I have problems with parallel execution using the doParallel package on KNIME Server (v 4.4.1). The funny thing is, it works fine within the KNIME Client (v 3.3.2).
Minimal example: I have a single "R Source (Table)" node that contains only a minimal script registering cores:
library(doParallel) registerDoParallel(cores=3) knime.out <- data.frame( N_WORKERS = getDoParWorkers() )
Workflow, see attachment.
- When I run this workflow locally in my KNIME Client, it works fine. Finishes in seconds.
- When I run just the R code on the Linux server (Red Hat Enterprise Linux 7.3) that hosts the KNIME Server and KNIME Executor, it works fine. Finishes immediately.
- BUT: When I run the workflow on the KNIME Server, it keeps on running and does not finish.
Does anybody know why this is happening and what to do about it?
Cheers
Ben