cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Workaround for GraphFrames not working on Delta Live Table?

amartinez
New Contributor III

According to this page, the GraphFrames package is included in the databricks runtime since at least 11.0. However trying to run a connected components algorithm inside a delta live table notebook yields the error java.lang.ClassNotFoundException: org.graphframes.GraphFramePythonAPI

I installed with pip using a magic command, but it seems that the package is not included in the cluster itself. Is there a workaround to get graphframes working on the delta live runtime? I tried adding the maven coordinates in the cluster definition but it seems DLT does not support maven libraries.

5 REPLIES 5

-werners-
Esteemed Contributor III

have you tried an ML cluster? I think that is the key.

amartinez
New Contributor III

How would I specify that I want a ML cluster? According to the Delta Live Table documentation I should not specify a runtime version....

-werners-
Esteemed Contributor III

the doc you mention is specifically for the machine learning runtime.

DLT does not use that runtime and, as you correctly asked, you cannot define a runtime for DLT. So my previous answer is not an option. Sorry about that.

Right now, the only way to install libs is by using pip.

According to this doc pip should work.

But as DLT is still pretty new, it is possible that graphframes is not yet supported.

Senthil1
Contributor

DLT is specifically built for Data Engineering work as of now

use MLFlow for tracking, monitoring with ML cluster for now

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.