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

Error with multiple FeatureLookup calls outside databricks

Nath
New Contributor II

I access databricks feature store outside databricks with databricks-connect on my IDE pycharm.

The problem is just outside Databricks, not with a notebook inside Databricks.

I use FeatureLookup mecanism to pull data from Feature store tables in my customer Dataframe (class FeatureLookup, API Training_set and load_df).

I need to add several Features from several Feature store tables. So I call this mecanism several times.

It doesn't work from 6th call. If I pull the 6th feature only, it works.

I have attached the StackTraceError.

The problem is in the file databricks\feature_store\utils\feature_lookup_utils.py, line : plan = spark.sql("explain cost select * from view").collect()[0][0]).

Thanks.

Nath

1 ACCEPTED SOLUTION

Accepted Solutions

shan_chandra
Databricks Employee
Databricks Employee

ProtoSerializer is known to be prone to StackOverflow when very deep query plans are being used. Could you please try increasing the stack size of the client JVM with the spark conf -spark.driver.extraJavaOptions which can be defined in ${spark_home}/conf/spark-defaults.conf  (e.g,

spark.driver.extraJavaOptions -Xss4M

), where ${spark_home}  can be found with databricks-connect get-spark-home

View solution in original post

3 REPLIES 3

shan_chandra
Databricks Employee
Databricks Employee

ProtoSerializer is known to be prone to StackOverflow when very deep query plans are being used. Could you please try increasing the stack size of the client JVM with the spark conf -spark.driver.extraJavaOptions which can be defined in ${spark_home}/conf/spark-defaults.conf  (e.g,

spark.driver.extraJavaOptions -Xss4M

), where ${spark_home}  can be found with databricks-connect get-spark-home

I was looking for the same, Thank you for the suggestion.

GMGlobalConnect

shan_chandra
Databricks Employee
Databricks Employee

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