Message-ID: <CALh21iL8FU4jyWJiOk-epd3VfwKHfK-QnLsjzTK5LdQSFwkt9g@mail.gmail.com>
Date: 2012-02-06T15:21:42Z
From: Stephen Weston
Subject: Can't start multi node SNOW cluster
In-Reply-To: <201202051235148421765@gmail.com>
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