New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cassandra Driver: Create cubejs Hello world project with Cassandra #80
Comments
Hey @sameerkhan662 ! Thanks for posting these. I guess there're two separate issues: cube.js lacks Cassandra driver and you have problems with node-java installation. Even if second issue is solved there will be still error because there's no Cassandra driver. Let's use this issue to track Cassandra driver development. @sameerkhan662 if you have some spare time there's guide on how to implement it https://github.com/statsbotco/cube.js/blob/master/CONTRIBUTING.md#implementing-driver |
@paveltiunov Yes I have install nodejs as root then I switched to normal user and installed everything but Now I am getting something like
Cube.js Error ---------------------------------------
Do you think I still have issue with cassandra driver though I have installed cassandra but have not started when I run the above code |
@sameerkhan662 Yep. Right. You're still having issue with Cassandra driver because there's no Cassandra driver at all. JDBC driver installed as fallback. |
I have not copied the folder structure yet but I am having a little confusion. Is it okay to copy the installed driver and paste in |
@sameerkhan662 Yep. It's ok do that. It should be done in cloned cube.js git repository not installed module. |
I didn't understand will it work or not....also my driver structure is somewhat like this(in windows): https://pasteboard.co/IgbfSbd.png Should I copy this whole folder? |
@sameerkhan662 Ah. I see. Nope. You don't need to copy that. Added some clarifications here: https://github.com/statsbotco/cube.js/blob/master/CONTRIBUTING.md#implementing-jdbc-driver |
@paveltiunov I don't see anything which is related to NoSQL connection or just json based data structure(mongobi is not free). Could you please elaborate me how implementing-jdbc-driver is related to the above structure I've posted |
Hey @sameerkhan662 ! Yep. Sure! Cassandra itself is a NoSQL database. Cube.js works only with SQL backends. Fortunately there's JDBC SQL Driver for Cassandra which makes Cassandra a SQL backend: https://mvnrepository.com/artifact/org.apache-extras.cassandra-jdbc/cassandra-jdbc/1.2.1. It's actually CQL which is in some kind compliant with SQL: https://cassandra.apache.org/doc/latest/cql/index.html. So in order to make Cassandra work with Cube.js we need:
|
First: What should be in place of driver class? |
@sameerkhan662 Great questions! Most of info you can get from here: https://stackoverflow.com/questions/7688571/what-should-be-the-connection-string-while-using-cql-jdbc-driver
|
Did you had any success? |
@CBox Hey Rafael! Please feel free to try it. I believe no one is on it currently. |
@paveltiunov To be honest I found out I can connect to Spark SQL that is part of our stack so no need of Cassandra anymore :) |
You could also look into using Prestodb as a connector. |
Describe the bug
Permission denied to build using node-gyp
What I did affter successfully installing cli: cubejs create hello-world -d cassandra
**- Installing DB driver dependencies
Cube.js Error ---------------------------------------
Version:
CubeJS version: 0.7.0
The text was updated successfully, but these errors were encountered: