cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Is there a way to setup a local SQL endpoint?

Chris_Shehu
Valued Contributor III
 
1 ACCEPTED SOLUTION

Accepted Solutions

-werners-
Esteemed Contributor III

Not that I know of. Databricks is cloud only. Perhaps in the future (and with that a single node docker image for local development), would be interesting?

View solution in original post

5 REPLIES 5

-werners-
Esteemed Contributor III

Not that I know of. Databricks is cloud only. Perhaps in the future (and with that a single node docker image for local development), would be interesting?

Hi @Christopher Shehu,

Short answer: no. A Databricks SQL warehouse only runs in the cloud, so you can't install one on your own machine. That matches what Werner and Jose said earlier.

You can still work from a local machine in a few ways:

  • Run SQL from local code. The Databricks SQL connectors (Python, Go, Node.js) send queries from your machine to a remote warehouse and return the results.
  • Run Spark code from your local IDE. Databricks Connect runs it on remote compute. The VS Code extension is built on top of it, and the CLI with Asset Bundles covers deployment and CI/CD.
  • Work fully offline. Run open-source Apache Spark with Delta Lake in Docker for unit tests. Behavior can differ from Databricks SQL, so keep a final test run on a real warehouse.
  • Keep cybersecurity in mind. Local access to a cloud workspace is a cybersecurity risk if you handle credentials loosely. Prefer OAuth over long-lived personal access tokens, keep tokens out of Git, and restrict access to your workspace by IP where your plan supports it.

What are you trying to do: offline development, CI tests, or cost control? Bilal asked the same question earlier, and with the answer I can suggest a better setup.

jose_gonzalez
Databricks Employee
Databricks Employee

Hi @Christopher Shehuโ€‹ ,

@Werner Stinckensโ€‹ is correct. You cannot have local SQL endpoint. You can reach out to your accounts team representative in case you need more information on how to enable it for your workspace.

BilalAslamDbrx
Databricks Employee
Databricks Employee

@Werner Stinckensโ€‹  no there isn't, can you tell me what you're trying to do?

Anonymous
Not applicable

You may have noticed that the local SQL endpoint is not listed in the options for getting started with APEX. The local SQL endpoint is an extremely useful feature for getting ADO.NET web services started. I say check this uk-dissertation.com review for admirable ways of study. Unfortunately, we canโ€™t make it work on a web application, and weโ€™ve never been able to figure out how to make it work on a Windows Phone application.