连接 R 和 Tableau

Connecting R with Tableau

我需要将安装在 Windows 7 中的 Tableau 连接到我在 Cloudera VM 中 运行ning 的 R。我在 R 中安装了 Rserve 包,在 R 终端中安装了 运行 这些命令:

> library(Rserve)
> Rserve

当我尝试连接到 Tableau 中的 R 时,出现以下错误:

External Service: An error has occurred during connection to xxx.xxx.xxx.xxx:6311: No connection could be made because the target machine actively refused it ExtSvc: Couldn't connect to server

我试过 127.0.0.1,VM 的 IP,并安装了 Cloudera ODBC 驱动程序。

我已经弄明白了,通过在根文件夹中添加包含以下行的 Rserv.conf 文件帮助我连接到 Tableau。

remote enable
plaintext enable