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:ย 

Databricks-connect Configure a connection to serverless compute Not working

TheManOfSteele
New Contributor III

Following these instructions, at https://docs.databricks.com/en/dev-tools/databricks-connect/python/install.html#configure-a-connecti... 

There seems to be an issue with the example code.

from databricks.connect import DatabricksSession as SparkSession

spark = DatabricksSession.builder.serverless(True).getOrCreate()

I will get an error that says AttributeError: 'Builder' object has no attribute 'serverless'
Is this a known issue? 


Thank you!

 

1 ACCEPTED SOLUTION

Accepted Solutions

szymon_dybczak
Contributor III

What version of Databricks connect do you use? Databricks connect for serverless compute is available from version 15.1.0, so maybe you have outdated version.

View solution in original post

2 REPLIES 2

szymon_dybczak
Contributor III

What version of Databricks connect do you use? Databricks connect for serverless compute is available from version 15.1.0, so maybe you have outdated version.

TheManOfSteele
New Contributor III

Worked! Thank you!

Connect with Databricks Users in Your Area

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