-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Databricks Connector Fails #6197
Comments
+1 |
Same problem here! |
Having the same issue. Could this be a problem with the base image?
@paveltiunov any other place where we should file this as a regression? |
The issue seems to be related to this line: https://github.com/cube-js/cube/blob/40195c97d5b0d2caf89b04ed4f7767a1ff767f01/packages/cubejs-databricks-jdbc-driver/src/DatabricksDriver.ts#LL30C14-L30C14 Which is used here:
I made a PR to fix this issue. In my case there was an exception while connecting to Databricks, but it was hidden with the error related to not finding
PR: #6521 |
I had the same problem, the tutorial says to copy the JDBC URL from you Databricks SQL Warehouse to use as connection, but the connection string is missing ;UID=token. When I added it in the end of the connection, it worked fine! I also was tested with Unity Catalog and I had to specify the catalog name from my database to work too. |
Fixed by #6521 |
I'm still getting the same error after pulling the latest image. docker run -p 4000:4000 -p 3000:3000 --env-file=.env -v ${PWD}:/cube/conf -e CUBEJS_DEV_MODE=true cubejs-jdk:latest
Warning. There is no cube.js file. Continue with environment variables
🔥 Cube Store (0.33.12) is assigned to 3030 port.
Warning. Option apiSecret is required in dev mode. Cube has generated it as 93c98045d89c258a6d77d5210824904e
🔓 Authentication checks are disabled in developer mode. Please use NODE_ENV=production to enable it.
🦅 Dev environment available at http://localhost:4000
🔗 Cube SQL (pg) is listening on 0.0.0.0:15432
🚀 Cube API server (0.33.12) is listening on 4000
2023-05-24 17:09:04,326 INFO [cubestored] <pid:19> Cube Store version 0.33.11
2023-05-24 17:09:04,330 INFO [cubestore::http::status] <pid:19> Serving status probes at 0.0.0.0:3031
2023-05-24 17:09:04,332 INFO [cubestore::metastore::rocks_fs] <pid:19> Using existing metastore in /cube/conf/.cubestore/data/metastore
2023-05-24 17:09:04,428 INFO [cubestore::mysql] <pid:19> MySQL port open on 0.0.0.0:13306
2023-05-24 17:09:04,428 INFO [cubestore::http] <pid:19> Http Server is listening on 0.0.0.0:3030
You accepted Terms & Conditions for JDBC driver from DataBricks by CUBEJS_DB_DATABRICKS_ACCEPT_POLICY
Downloading DatabricksJDBC42-2.6.29.1051
Release notes: https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/jdbc/2.6.29/docs/release-notes.txt
Error: ENOENT: no such file or directory, open 'package.json'
at DatabricksDriver.testConnection (/cube/node_modules/@cubejs-backend/jdbc-driver/src/JDBCDriver.ts:205:13)
at CubejsServerCore.getDriver (/cube/node_modules/@cubejs-backend/server-core/src/core/server.ts:792:7)
at /cube/node_modules/@cubejs-backend/server-core/src/core/DevServer.ts:108:22
at /cube/node_modules/@cubejs-backend/server-core/src/core/DevServer.ts:78:9
|
@asanchezdelc Are you using the image |
Hi, tried again and still getting the same error. Using last image of tag
jdk uploaded 2 days ago.
Em qua., 24 de mai. de 2023 15:45, Carla Gouveia ***@***.***>
escreveu:
… @asanchezdelc <https://github.com/asanchezdelc> Are you using the image
cubejs/cube:jdk?
—
Reply to this email directly, view it on GitHub
<#6197 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHSS7QZDRCB3LYGPUJPD73XHZJOHANCNFSM6AAAAAAVFZ33F4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yea, I'm using the latest tag. I also checked this #6651 code is in the container when running it. |
Ok, I managed to make it work. Apparently when we create docker compose and we don't provide the 'package.json' file in the root folder it is not possible to make the connection. I suggest a revision on documentation about this process. My package.json is based on cube cloud development environment {
"name": "cubejs-project-template",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "cubejs-server"
},
"template": "docker",
"templateVersion": "0.33.11" --> cube cloud set this as 0.28.19
} |
@caiobelfort I didn't have a |
For me as well, adding ;UID=token at the end of the connection string solved the problem |
Describe the bug
Hello,
I am in the process of trying out cube.js. I wanted to use the Databricks JDBC connector with Docker.
I tried to follow this Documentation.
The Container Starts up but if I try to open the schema (http://localhost:4000/#/schema) I got following failure:
To Reproduce
.env file
Additional context
I use the dev mode otherwise I get following error message:
Thanks for the help.
The text was updated successfully, but these errors were encountered: