Skip to content
Prev 967 / 2152 Next

Problem Running 'snow' on Several Machines

Unfortunately, there are dozens of possible reasons that makeSOCKcluster
could hang, so it's impossible for us to guess what your particular problem is.
You may have several issues to resolve before you'll get this running if
you're unlucky.

However, one common problem is that one of the workers (in your case
"192.168.1.101") may be unable to connect back to the master process using
the default name used by makeSOCKcluster.  It may work better to use the
dot-separated IP address, which you might be able to compute using:

    > master <- nsl(Sys.info()["nodename"])

Then create the cluster with:

    > cl <- makeSOCKcluster(c("localhost", "192.168.1.101"), master=master)

But if that shot in the dark doesn't work, I suggest debugging it by setting
the manual argument to TRUE:

    > cl <- makeSOCKcluster(c("localhost", "192.168.1.101"), manual=TRUE)

It will then tell you the command to use to start each of the workers.
Open a terminal on each worker, and execute the commands as it prompts you.
Now, you should see the error message, and finding the solution will be
much easier.

- Steve
On Fri, Apr 22, 2011 at 5:30 AM, Michael Smith <my.r.help at gmail.com> wrote: