[R-sig-hpc] Can't start multi node SNOW cluster

Stephen Weston stephen.b.weston at gmail.com
Mon Feb 6 16:21:42 CET 2012


On Sat, Feb 4, 2012 at 11:35 PM, Xiaobo Gu <guxiaobo1982 at gmail.com> wrote:
> It seems there is a bug in snow or the samle code,
> It seems snow treats every entry in the sep list as a seperate worker
>
>> winOptions <-
> +     list(host="192.168.72.1",
> +          rscript="D:/Amber/Program/R/R-2.14.1/bin/x64/Rscript.exe",
> +          snowlib="C:/Users/dell/Documents/R/win-library/2.14")
>> cl <- makeCluster(c(rep(winOptions, 2)), type = "SOCK", manual=TRUE)

I think you should use something like:

    cl <- makeCluster(lapply(1:2, function(i) winOptions), type =
"SOCK", manual=TRUE)

To allow options to be passed in with the host names, you need to
specify a list of lists.  Using "c(rep(winOptions, 2))" concatenates winOptions
to itself which makes snow think that you're passing in a simple lists of
hostnames.

- Steve



More information about the R-sig-hpc mailing list