06-07-2023 10:10 AM
Hello,
I'm trying to connect to our databricks instance using the vscode extension. However, when following this guide we cannot get the configuration to proceed past the point that it asks for our instance URL.
The prompt appears to expect a URL of the form https://***.cloud.databricks.com where ours is of the form https://*.uk/
We get the error message "not a databricks host" and cannot proceed past this point. If I append the correct suffix to any other string, making an invalid instance URL in the process, I can proceed to the next step.
Is there a workaround to circumvent the plugin incorrectly flagging our URL as invalid? Am I missing something else?
I have tried continuing to configure my .databrickscfg file manually with the correct URL and token, but the profile does not appear as a valid selection in the VS code panel, I believe because of the same URL filter.
Thanks in advance,
Adrian
06-21-2023 04:17 AM
Hello,
Yes, the databricks team shared a modified version of the vs code plugin which did not include the URL matching logic. It connects successfully. However, our custom URL is as it is because our organisation is hosting its own instance of Databricks within a VPC, behind a corporate firewall. As a result the version of the databricks instance we are running is not sufficiently new to support the vscode plugin features that allow us to connect and execute code on the cluster.
We are moving forward with developing locally within a docker container, rather than with a connection to the databricks instance, and trying to refactor our tests accordingly to run locally. We will also examine databricks-connect as an option to make a connection to our databricks instance for when the tests require it - however, this may also be affected by the limitations related to the version of databricks we are running.
@jamesw's long comment in this forum post appears to be an up to date account of the options and limitations for debugging databricks code: https://community.databricks.com/s/question/0D53f00001HKIByCAP/debugging
Adrian
06-15-2023 11:04 PM
Hi @Adrian Nettleship
Great to meet you, and thanks for your question!
Let's see if your peers in the community have an answer to your question. Thanks.
06-16-2023 04:33 AM
I don't know how to solve your problem but the URL of my Azure Databricks workspace is also not the form of https://***.cloud.databricks.com but https://adb-***.*.azuredatabricks.net. But the configuration in Visual Studio Databricks extension does work for me.
06-18-2023 05:54 AM
Hi @Adrian Nettleship
Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.
We'd love to hear from you.
Thanks!
06-21-2023 04:17 AM
Hello,
Yes, the databricks team shared a modified version of the vs code plugin which did not include the URL matching logic. It connects successfully. However, our custom URL is as it is because our organisation is hosting its own instance of Databricks within a VPC, behind a corporate firewall. As a result the version of the databricks instance we are running is not sufficiently new to support the vscode plugin features that allow us to connect and execute code on the cluster.
We are moving forward with developing locally within a docker container, rather than with a connection to the databricks instance, and trying to refactor our tests accordingly to run locally. We will also examine databricks-connect as an option to make a connection to our databricks instance for when the tests require it - however, this may also be affected by the limitations related to the version of databricks we are running.
@jamesw's long comment in this forum post appears to be an up to date account of the options and limitations for debugging databricks code: https://community.databricks.com/s/question/0D53f00001HKIByCAP/debugging
Adrian
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.
Request a New Group