question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Databricks driver - setup steps not reproducible

See original GitHub issue

Description

  1. I’m not able to provide the JDBC URL - the box is there but when I try to type anything in, nothing happens (workaround: edit the driver and hardcode your JDBC URL as the template URL)
  2. Guides specify that I should paste my token into the “personal-access-token” field. This field doesn’t exist; I only see “username” and “password” fields (workaround: specify token as the username and provide the token in the password field)
  3. When trying to use the official “Azure Databricks” driver, when I try to connect, I get a popup named “Download driver files”, which asks me to download the Simba JDBC driver. However, this fails with the following error: No target file for 'https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/jdbc/2.6.22/SimbaSparkJDBC42-2.6.22.1040.zip'

DBeaver Version

22.2.1

Operating System

Windows 11

Database and driver

Built-in “Azure Databricks” driver and the official Databricks JDBC driver.

Steps to reproduce

Follow the official guide from MS docs/Databricks docs or try to use the official DBeaver “Azure Databricks” driver.

Additional context

The following setup worked for me to connect to Databricks (it’s a modified guide from MS docs/Databricks docs):

  1. Download Databricks JDBC driver: LINK and extract the archive
  2. Start DBeaver.
  3. If you are prompted to create a new database, click No.
  4. If you are prompted to connect to or select a database, click Cancel.
  5. Click Database > Driver Manager.
  6. n the Driver Manager dialog box, click New.
  7. In the Create new driver dialog box, click the Libraries tab.
  8. Click Add File.
  9. Browse to the DatabricksJDBC42.jar file that you extracted earlier and click Open.
  10. On the Settings tab, for Driver Name, enter Databricks.
  11. On the Settings tab, for Class Name, enter com.databricks.client.jdbc.Driver.
  12. Click OK.
  13. In the Driver Manager dialog box, click Close.
  14. Reopen Driver Manager
  15. In the Create new driver dialog box, click the Libraries tab.
  16. Click Find Class.
  17. In the Driver class list, confirm that com.databricks.client.jdbc.Driver is selected.
  18. Click OK
  19. In the Driver Manager dialog box, click Close.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
djagoda881commented, Nov 8, 2022

After the change, everything works properly. Thanks for your help

1reaction
LonwoLonwocommented, Oct 3, 2022

Ok. Driver downloading problems fixed here: https://github.com/dbeaver/dbeaver/issues/17757

Azure URL ticket here: https://github.com/dbeaver/dbeaver/issues/17785

All fixes will be available in the 22.2.2 DBeaver version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ten Simple Databricks Notebook Tips & Tricks for Data ...
1. Magic command %pip: Install Python packages and manage Python Environment. Databricks Runtime (DBR) or Databricks Runtime for Machine ...
Read more >
Configure the Databricks ODBC and JDBC drivers
Learn how to get started with the Databricks ODBC and JDBC drivers and connect to Databricks.
Read more >
Notebook-scoped R libraries | Databricks on Google Cloud
Install a package​​ Databricks recommends using a CRAN snapshot as the repository to guarantee reproducible results.
Read more >
Automate Deployment and Testing with Databricks Notebook ...
Learn how to automate building, testing, and deployment of the Data Science workflow from inside Databricks notebooks that integrates fully ...
Read more >
How to Simplify Python Environment Management Using ...
Databricks does not recommend users to use %sh pip / conda install in Databricks Runtime ML. %sh commands might not change the notebook-scoped ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found