Hi all,
I am trying to connect with RServe in Hana Studio to run my Rlang scripts. This causes the following error message:
SAP DBTech JDBC: [2048]: column store error: search table error: [34081] Connection error: Unable to connect with Rserve.;None of the Rserve can be connected: Cannot connect to the host with the port;
The default port is 7400 for rserve installation. I have given my IP & 7400 as the cer_rserve_address
I have not created any user/ password for authentication.
I have made my RServe setup accoiring to this tutorial
Guide: Setting up HANA integration with R for use with SAP Predictive Analysis
I have also installed kernlab on my R server. Now I am trying to run the following Script which casues the above error.
DROP TABLE "spamClassified";
CREATE COLUMN TABLE "spamClassified" LIKE "spamEval" WITH NO DATA;
ALTER TABLE "spamClassified" ADD ("classified" VARCHAR(5000));
DROP PROCEDURE USE_SVM; CREATE PROCEDURE USE_SVM(IN eval "spamEval", IN modeltbl SPAM_MODEL_T, OUT result "spamClassified")
LANGUAGE RLANG AS BEGIN
library(kernlab) svmModel <- unserialize(modeltbl$MODEL[[1]])
classified <- predict(svmModel, eval [,-(which(names(eval) %in% "type"))])
result <- as.data.frame(cbind(eval, classified))
END;
CALL USE_SVM("spamEval", SPAM_MODEL, "spamClassified") WITH OVERVIEW; SELECT * FROM "spamClassified";
I have read in this blog
that someone has solved it with the firewall setiing in R server. However, it does not mention what exactly was done. In my R server running on Suse Enterpreise I have added port number 7400 using yast.
Any suggestions?
Lihas