โ12-01-2021 12:51 PM
โ12-02-2021 02:00 AM
Hi @Borislav Blagoevโ unfortunately it is not possible to connect to the cluster other Databricks connect.
โ12-02-2021 02:04 AM
Is it possible to execute the entire code in the databricks cluster instead only the spark code?
โ12-02-2021 02:31 AM
For Spark jobs, you can use Databricks connect.
To use Python code to run SQL commands on Databricks clusters and Databricks SQL endpoints you can use the Databricks SQL Connector for Python.
โ12-02-2021 04:18 AM
I want to execute Python code as well. The entire code (Spark, SQL, Python).
โ12-02-2021 07:47 AM
hm I think plain python code will run with databricks connect (if it is a python program you are writing), and spark sql can be done by spark.sql(...).
Is that what you want to do?
โ12-02-2021 01:36 PM
Only the spark code is executed in the cluster. Unfortunately!
โ12-03-2021 12:51 AM
dang, not even the spark.sql("...")?
โ12-03-2021 01:35 AM
As I mentioned earlier, only spark codes will be executed with Databricks connect. We have an internal feature request to access the Python REPL from the local IDE through DBconnect.
โ12-03-2021 02:48 AM
I don't know why but when I want to access that link I get this error: Unable to sign in I tried with the same email as here.
โ12-03-2021 02:54 AM
@Werner Stinckensโ you can execute spark.sql("...") in the cluster but I want to execute this for example:
collection = [1, 2, 3, 4, 5]
sum = 0
for x in collection:
sum += x
stupid example!
โ12-03-2021 03:04 AM
Hi @Borislav Blagoevโ , you won't be able to access it. As I mentioned in the previous comment it's an internal feature request and only available for Databricks employees.
โ12-03-2021 04:54 AM
Oh, OK! I didn't understand that sorry!
โ12-06-2021 04:32 PM
hi @Borislav Blagoevโ
Have you check the list of limitation for DB connect? docs here https://docs.databricks.com/dev-tools/databricks-connect.html#limitations
Limitations
The following Databricks features and third-party platforms are unsupported:
โ12-07-2021 12:36 AM
Yes, that's why I want to use something different than Databrcks Connect!
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