[R-sig-hpc] R SOCKet-based cluster
Fg Nu
fgnu32 at yahoo.com
Tue May 28 09:48:28 CEST 2013
Hi,
[I posted this to SO (http://stackoverflow.com/q/16786136/1414455), but am also posting this here.]
I am trying to establish a SOCKet cluster using the R `snow` package.
I have access to 5 machines with the IP addresses:
xxx.xxx.xx.x1
xxx.xxx.xx.x2
xxx.xxx.xx.x3
xxx.xxx.xx.x4
xxx.xxx.xx.x5
[As in this question][1], I have successfully copied the public key over to those machines so that password-less authentication works. From within R, this works
library(parallel)
library(snowfall)
for (i in seq.int(5)) system(print(paste('ssh ', 'root at xxx.xxx.xx.x', i, ' date',
sep = '')))
However, this hangs.
sockCluster = makeSOCKcluster(c('root at xxx.xxx.xx.x1',
'root at xxx.xxx.xx.x2',
'root at xxx.xxx.xx.x3',
'root at xxx.xxx.xx.x4',
'root at xxx.xxx.xx.x5'))
What am I missing?
[1]: http://superuser.com/q/600658/133750
Thanks,
Fg
More information about the R-sig-hpc
mailing list