Unable to Connect Tableau with Cassandra - cassandra

I was trying to connect Tableau with Cassandra.
Tableau version: 10.0(I also tried 8.3)
Cassandra version: 3.0.8
DataStax Enterprise Server 5.0.2
I installed Datastax ODBC driver 2.4 (64 bit), and configured DSN(Data Source Name). The connection to Cassandra was successful when I tested from ODBC Data Source Administrator.
But when I tried to connect from Tableau, I got this error:
I was able to connect to Cassandra from Datastax DevCenter, so I think the problem is either on Tableau end or the driver itself.
I tried both 10.0 and 8.3 version of Tableau, neither work.
Here are the error logs from Datastax ODBC driver:
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)
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)
Seems like ODBC driver was not able to compose the right CQL query.
Can someone help me ? Thanks
I followed this instruction:
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.
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 +

The ODBC Driver isn't supported for DSE 5.0.
https://docs.datastax.com/en/developer/driver-matrix/doc/common/driverMatrix.html

Related

How do I configure the Twig JDBC driver in DbVisualizer to connect to a Cassandra cluster?

I have an Ubuntu 20.04.5 install which has a Cassandra database which I want to connect to with DbVisualizer v14.0.1 using the Cassandra Twig driver (for reasons best known to my organisation).
I have installed DbVis and downloaded the cassandra-twig-jdbc-3.0.1.jar driver, started DbVis with the free version.
I have installed the driver successfully, providing the URL format as jdbc:cassandra://<server>:<port>/<database> specified by the Cassandra docs, and named it 'Cassandra':
I am now trying to create a database connection, for which the documentation states there is a wizard, however I cannot find that.
Going with a manual connection, I do not see the Database Connection panel described by the documentation, I just get a driver selection:
If I select the 'Cassandra' driver I don't get a 'Database URL' field:
Clicking 'Connect' fails - how can I define the connection URL for my local database?
Open Tools->Driver Manager and choose the Cassandra DataStax driver entry. In the right pane click the Start Download link. Once ready, close the dialog. In the main window and in the Databases tab, click to create a new database connection and choose Cassandra DataStax. Now you can choose Database URL.
The first step where you have installed the Twig driver in DBVisualizer, that's where you configure the URL.
In your screenshot, you have configured it with:
jdbc:cassandra://<server>:<port>/<database>
You should instead populate it with details of your cluster. For example, for this cluster:
contact point IP - 10.1.2.3
client port - 9042
keyspace name - mykeyspace
the corresponding JDBC URL is:
jdbc:cassandra://10.1.2.3:9042/mykeyspace
I haven't written instructions specifically for DBVisualizer but if you're interested, I've written one for DBeaver in this post -- How do I connect to Cassandra with Dbeaver Community edition?. Cheers!

How do I configure Talend Open Studio to connect to a Cassandra cluster?

I referred this Documentation
https://www.javatpoint.com/talend-jdbc-connection
For how to config DB connection on Talend. In the documentation mentioned, MySQL JDBC Connector is used to connect the MySQL DB to Talend. In my case, I need to connect with Cassandra JDBC Connector is used to connect the Cassandra DB to Talend, and the connection is also established successfully.
The documentation mentioned when we right-click on the database connection it will show the popup menu. The pop-menu shows the retrieve schema option. This option is used to show the table. But when I right-click on the DB connection it's not showing a pop-menu on the Talend Open Studio. How to fix this issue.
I suspect the problem is that you're using the wrong JDBC driver although I'm unable to confirm that since you didn't actually say which one you're using.
You will need to download the Simba JDBC Driver for Apache Cassandra from DataStax Downloads in order to connect to a Cassandra cluster. Then you'll need to install the driver on to your Talend.
I don't have the detailed steps for doing that but I've previously written instructions for connecting clients like Pentaho Data Integration and DBeaver to Astra DB which is a Cassandra-as-a-service. The instructions for those should give you an idea of how to configure Talend. Cheers!
I encountered the same problem, you're supposed to make the connection under the 'NoSQL Connections' Tab since Cassandra is a NoSQL database.
I followed the instructions here

Tableau connection to Spark SQL

I am trying to connect Tableau Desktop 10 (mac) to Spark SQL 2.1 (on centos 7 server). I am connecting via Simba ODBC driver with Authentication = Username and Username = . It doesn't give any error but I don't see the tables which are available in Hive. After searching and choosing 'default' schema, and searching for tables, I only see default (default.default) table. However, when I use beeline on the server to connect to Spark SQL, the hive tables are visible.
If I use the custom SQL feature I can query the tables and use the data, but I still have no way to list the tables in Tableau.
I am not sure if the issue is on Tableau side or Spark side. I'd greatly appreciate any help with troubleshooting this issue.
The reason for this behaviour is following:
In spark 2.0, show tables output format is : 'tableName', 'isTemporary'
and
In Spark 2.1 show tables output format is 'database', 'tablename', 'isTemporary'
Now Tableau 10.2.3 or greater are able to parse the output from spark2.1, but 10.2.1 and less are unable to parse this new output format.

Simba Spark ODBC Driver is not working ms excel

I am using Spark(1.5.0) for utilizing Spark-SQL feature using Spark ThriftServer application and also using Simba Spark ODBC Driver for getting connection.
Using Tableau, I am able to connect and able to do Spark-SQL operations.
But when, I tried to connect Spark-SQL to MS-Excel, It goes connected but not listing database and table names. And I also tried Microsoft Query option of MS-Excel according to Doc to execute custom SQL queries (select * default.airline), but it's throwing error with query (select * from SPARK.default.airline) with catalog name SPARK.
Problem is that how to remove that catalog name from the query, I tried with all the available options.
I work as a Sales Engineer with Simba. The Simba Spark driver should work in Excel with both MS Query and through the Connection Wizard.
Can you please provide more information on this problem? You can enable driver logging through the configuration options in ODBC Administrator. Choose your DSN, go to logging options, and set it to TRACE.
Then restart Excel and try the query again.
Send the logs and a screenshot of your DSN to sales#simba.com
Thanks,
Jeff

Unable to connect Cassandra Test Cluster

I have created 1 node Cassandra cluster (datastax enterprise) on Ubuntu, to which I am able to connect via cqlsh but when i try to connect via OpsCenter or from VS2012 via c# driver I get error like "Unable to connect to cluster" or "All host tried for query are in error", can anyone help me with this error?
EDIT:
I installed the datastax Enterprise following the instructions as given at "datastax.com/documentation/datastax_enterprise/4.0/…; and have all keys with their default value in yaml file except the cluster name. When I run cqlsh it connect with this message:
Connected to fptestcluster at localhost:9160.
[cqlsh 4.1.1 | Cassandra 2.0.6.28 | CQL spec 3.1.1 | Thrift protocol 19.39.0]
But as specified in original question, with OpsCenter and C# driver I am not able to connect.
I found the fix for this, I had to change "listen_address" and "rpc_address" to the IP of machine rather than localhost and then it works, thanks everyone.

Resources