-
1. Re: How to connect R to Tableau Server
Shuai Zhao Dec 11, 2014 11:17 PM (in response to Shuai Zhao)1 of 1 people found this helpfulcontinue...
I modified my command as:
tabadmin stop
tabadmin set vizqlserver.rserve.host localhost
tabadmin set vizqlserver.rserve.port 6311
tabadmin config
tabadmin start
and the error message shown as
an error occurred while communicating with the Rserve service.
-
2. Re: How to connect R to Tableau Server
Cristian Vasile Dec 11, 2014 11:41 PM (in response to Shuai Zhao)1 of 1 people found this helpfulFYI.
Sections
What you have to know about Tableau
Getting started with R
R Libraries
R on the Mac (and Tableau on a Windows Virtual Machine)
How Tableau sends data to R
Disaggregated data
Counting connections & R script operations
Exactly what is sent to R
Densification
Order of operations
Getting into arguments
Nesting arguments
Logging and Debugging
What the Tableau/R integration doesn’t do
Regards,
Cristian
-
3. Re: How to connect R to Tableau Server
Russell Christopher Dec 12, 2014 5:36 PM (in response to Shuai Zhao)1 of 1 people found this helpfulHave you used any other tools to verify that RServ is running and accepting connections?
Assuming that RServ is listening on 6311, what you have so far looks fine - I noticed that you aren't specifying a username and/password for rserv, however. Is the server configured with those?
Also, depending on whether you are running IPV6 and IPV4 or only IPV4, your "localhost" machine name may not be resolving correctly. Try just using the IP address of your machine instead.
-
4. Re: How to connect R to Tableau Server
Cristian Vasile Dec 13, 2014 1:04 AM (in response to Shuai Zhao)1 of 1 people found this helpfulShuai,
Check out the following links:
Resources for setting up and configuring RServer
RServe Actively Refuses the Connection?
Rserve - Binary R server - RForge.net
Russell is right, do not use localhost instead use loopback IP address aka 127.0.0.1 if R and Tableau Server are running on the same machine (your case) OR Rserve own IP.
Hope this helps.
Regards,
Cristian.
-
5. Re: How to connect R to Tableau Server
venkata krishna prasad anumula Jun 16, 2017 1:10 PM (in response to Shuai Zhao)were you able to make it work?
-
6. Re: How to connect R to Tableau Server
Andrew Clapson Nov 6, 2017 2:37 PM (in response to Cristian Vasile)So I spent part of last week configuring this exact issue (Tableau Server + R/RServer running on the same Windows Server), and what got it all working was indeed these settings:
tabadmin set vizqlserver.extsvc.host localhost
tabadmin set vizqlserver.extsvc.port 6311
*and*
tabadmin set vizqlserver.allow_insecure_scripts true
I had tried the loopback IP (vizqlserver.extsvc.host 127.0.0.1) at first, but it didn't work in my case - localhost was what was needed.
Thanks to Joshua Metz at Tableau Technical support who helped me troubleshoot this puppy...next is getting TabPy working!
Andy