Rserve connection from local R client to Rserve host on AWS Server

假如想象 提交于 2019-12-12 15:09:34

问题


Currently trying to connect to an Amazon AWS server via IP address on port 6311. I've set up Rserve as a daemon on the AWS server and have checked that it is in fact listening on port 6311 by calling the netstat command, but when I run the follow from my local R client:

c <- RS.connect(host = "x.x.x.x")

I get this error message:

-  cannot connect to x.x.x.x:6311

The local client does have RSClient installed, we've verified that Rserve is installed and running correctly on the host server.

Does anyone have any suggestions on how to connect to a remote server using this method??


回答1:


You need to set the entire public dns address as your host.

(e.g.)

c <- RS.connect(host = "ec2-X-X-X-X.{availability_zone}.compute.amazonaws.com")


来源:https://stackoverflow.com/questions/26593143/rserve-connection-from-local-r-client-to-rserve-host-on-aws-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!