From soumenpal1990 at yahoo.com  Fri Jan 15 08:05:21 2016
From: soumenpal1990 at yahoo.com (Soumen Pal)
Date: Fri, 15 Jan 2016 07:05:21 +0000 (UTC)
Subject: [Rd] Error in socketConnection(master, port = port, blocking = TRUE,
 open = "a+b", :    cannot open the connection
References: <930069797.4964946.1452841521886.JavaMail.yahoo.ref@mail.yahoo.com>
Message-ID: <930069797.4964946.1452841521886.JavaMail.yahoo@mail.yahoo.com>

Dear All

I have sucessfully created cluster of four nodes using localhost in my local machine by executing the following command

> cl<-makePSOCKcluster(c(rep("localhost",4)),outfile='',homogeneous=FALSE,port=11001)
starting worker pid=4271 on localhost:11001 at 12:12:26.164
starting worker pid=4280 on localhost:11001 at 12:12:26.309
starting worker pid=4289 on localhost:11001 at 12:12:26.456
starting worker pid=4298 on localhost:11001 at 12:12:26.604
> 
> stopCluster(cl)

Now I am trying to create a cluster of 2 nodes (one in my local machine and another remote machine) by using "makePSOCKcluster" command. Both machine have identical settings and connected by SSH. OS is Ubuntu 14.04 LTS & R version 3.2.1. I have executed the follwoing command to create cluster but getting the following error message and R Session is getting hanged.

cl<-makePSOCKcluster(c(rep("soumen at 10.10.2.32",1)),outfile='',homogeneous=FALSE,port=11001)
soumen at 10.10.2.32's password: 
starting worker pid=2324 on soumen-HP-ProBook-440-G2:11001 at 12:11:59.349
Error in socketConnection(master, port = port, blocking = TRUE, open = "a+b",? : 
? cannot open the connection
Calls: <Anonymous> ... doTryCatch -> recvData -> makeSOCKmaster -> socketConnection
In addition: Warning message:
In socketConnection(master, port = port, blocking = TRUE, open = "a+b",? :
? soumen-HP-ProBook-440-G2:11001 cannot be opened
Execution halted


My sessionInfo() is as follwos

sessionInfo()
R version 3.2.1 (2015-06-18)
Platform: x86_64-unknown-linux-gnu (64-bit)
Running under: Ubuntu 14.04.1 LTS

locale:
?[1] LC_CTYPE=en_IN?????? LC_NUMERIC=C???????? LC_TIME=en_IN?????? 
?[4] LC_COLLATE=en_IN???? LC_MONETARY=en_IN??? LC_MESSAGES=en_IN?? 
?[7] LC_PAPER=en_IN?????? LC_NAME=C??????????? LC_ADDRESS=C??????? 
[10] LC_TELEPHONE=C?????? LC_MEASUREMENT=en_IN LC_IDENTIFICATION=C 

attached base packages:
[1] parallel? stats???? graphics? grDevices utils???? datasets? methods? 
[8] base?? 


I dont know how to solve this problem.Plese help me to solve this problem.

Thanks

Soumen Pal

	[[alternative HTML version deleted]]



[Rd] Error in socketConnection(master, port = port, blocking = TRUE, open = "a+b", : cannot open the connection
Soumen Pal