我有兩臺服務器在局域網上在CentOS 6.4最小的全新安裝和R 3.0.1。兩臺計算機都安裝了並行,降雪和降雪軟件包。R:在doParallel /降雪使集羣掛起
的服務器可以ssh到對方的罰款。
當我試圖使集羣在任一方向,我得到一個密碼的提示,但在輸入密碼後,它只是掛起那裏無限期地。
makePSOCKcluster("192.168.1.1",user="username")
如何解決此問題?
編輯:
我還試圖調用makePSOCKcluster上述計算機上的,其能夠被用作從設備(從其他計算機)的主機,但它仍然掛起。那麼,是否有可能存在防火牆問題?我使用makePSOCKcluster用端口22也試過:
> makePSOCKcluster("192.168.1.1",user="username",port=22)
Error in socketConnection("localhost", port = port, server = TRUE, blocking = TRUE, :
cannot open the connection
In addition: Warning message:
In socketConnection("localhost", port = port, server = TRUE, blocking = TRUE, :
port 22 cannot be opened
,這裏是我的iptables
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
您需要是root用戶才能綁定到低端口號,並且您不能綁定到已經綁定到另一個進程(如sshd)的端口。 –