Connect java and R with rserve

I have a Java analysis application for which I need to install R. I also installed R on my system and I installed the Rserve library. But when I try to implement the Rserve () command in the R console, the following error:

SOCK_ERROR: communication error # 98 (address already in use)

I installed everything I needed, along with Rserve, which is necessary for my Java application, and I think they work fine except for Rserve. Can someone help me in this predicament?

The name of the tool is cytoscape along with the fact that I want to run a DvD application for which it throws an error. A Linux operating system (CentOS).

Thanks Mandar

+2
source share
1 answer

this means that you have a working server on the same host and on the same port. This may be caused by a previous execution that never closes the server. You can try connecting to the server and shutting it down if you have a client, or checking if the server is working. Since you are on CentOS, you can understand:

ps faux | grep Rserve 

If you see a string like

 root 23762 0.0 0.7 211304 28632 ? Ss 14:11 0:00 /usr/lib64/R/bin/Rserve 

then you know that you have it. You can kill the server and restart your tool.

+6
source

Source: https://habr.com/ru/post/986575/


All Articles