简体   繁体   English

无法将Tableau与Cassandra连接

[英]Unable to Connect Tableau with Cassandra

I was trying to connect Tableau with Cassandra. 我试图将Tableau与Cassandra连接起来。

Tableau version: 10.0(I also tried 8.3) Tableau版本:10.0(我也尝试过8.3)

Cassandra version: 3.0.8 Cassandra版本:3.0.8

DataStax Enterprise Server 5.0.2 DataStax企业服务器5.0.2

I installed Datastax ODBC driver 2.4 (64 bit), and configured DSN(Data Source Name). 我安装了Datastax ODBC驱动程序2.4(64位),并配置了DSN(数据源名称)。 The connection to Cassandra was successful when I tested from ODBC Data Source Administrator. 从ODBC数据源管理器进行测试时,与Cassandra的连接成功。 在此处输入图片说明

But when I tried to connect from Tableau, I got this error: 但是,当我尝试从Tableau连接时,出现此错误: 在此处输入图片说明

I was able to connect to Cassandra from Datastax DevCenter, so I think the problem is either on Tableau end or the driver itself. 我能够从Datastax DevCenter连接到Cassandra,所以我认为问题出在Tableau端或驱动程序本身。

I tried both 10.0 and 8.3 version of Tableau, neither work. 我尝试了Tableau的10.0和8.3版本,但均无济于事。

Here are the error logs from Datastax ODBC driver: 以下是来自Datastax ODBC驱动程序的错误日志:

Oct 14 14:25:04.869 ERROR 5376 Statement::SQLPrepareW: [DataStax][CassandraODBC] (10) Error while executing a query in Cassandra: [33562624] : line 1:7 no viable alternative at input '1' (SELECT 1 ) 10月14日14:25:04.869错误5376语句:: SQLPrepareW:[DataStax] [CassandraODBC](10)在Cassandra中执行查询时出错:[33562624]:行1:7输入'1'处没有可行的选择(SELECT 1

Oct 14 14:39:56.491 ERROR 6112 Statement::SQLPrepareW: [DataStax][CassandraODBC] (10) Error while executing a query in Cassandra: [33562624] : line 1:7 no viable alternative at input '1' (SELECT 1 ) 10月14日14:39:56.491错误6112语句:: SQLPrepareW:[DataStax] [CassandraODBC](10)在Cassandra中执行查询时出错:[33562624]:行1:7输入'1'处没有可行的选择(选择1

Seems like ODBC driver was not able to compose the right CQL query. 似乎ODBC驱动程序无法组成正确的CQL查询。

Can someone help me ? 有人能帮我吗 ? Thanks 谢谢

I followed this instruction: http://www.datastax.com/dev/blog/datastax-odbc-cql-connector-apache-cassandra-datastax-enterprise 我遵循了以下说明: http : //www.datastax.com/dev/blog/datastax-odbc-cql-connector-apache-cassandra-datastax-enterprise

When you select “Other Databases (ODBC)” in Tableau and choose the DSN you created, make sure to fill out the Server, Port, and Database fields. 在Tableau中选择“其他数据库(ODBC)”并选择创建的DSN时,请确保填写“服务器”,“端口”和“数据库”字段。

AS the error says the server's permission settings could also be a factor. 该错误表明服务器的权限设置也可能是一个因素。

Also, once you connect to the server, in the Data Source tab manually type in schema name which your keyspace + to add to Tableau and then in the table field type in your table name and click + 此外,一旦连接到服务器,请在“数据源”选项卡中手动键入架构名称,将其键空间+添加到Tableau,然后在表格字段中键入表格名称,然后单击+

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM