Replies: 5 comments
-
Have you verified that If you move |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response, Robin. That appeared to be part of the issue. I'll outline my steps to fix below for other Databricks users:
to
Robin, could I suggest adding |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info, that's very useful. We don't have access to DataBricks, and it's very difficult to figure out a jar config that is agnostic to the env in which it's running. So this feedback is invaluable. The suggested code actually populates where we 'think' your jar is, and seems to work on most systems. The source code that 'autodetects' the location is here My hypothesis is that We can then think about how to accurately reflect this in the warning/suggestion that's printed for the user |
Beta Was this translation helpful? Give feedback.
-
Hi. Btw on your comment above...Im not sure i agree with the change proposed... In this line spark.udf.registerJavaFunction('jaro_winkler_sim','uk.gov.moj.dash.linkage.JaroWinklerSimilarity',
types.DoubleType())
if its declared as of course if you want to use it on other spark things you can call it in anyway you like. |
Beta Was this translation helpful? Give feedback.
-
Moving this to a discussion so we have a record of how to register these functions in databricks. |
Beta Was this translation helpful? Give feedback.
-
Experiencing the error below when trying to load Jaro-Winkler Similarity in Databricks on a Spark 3.1.2 cluster.
Returns the Error message:
AnalysisException: Can not load class uk.gov.moj.dash.linkage.JaroWinklerSimilarity, please make sure it is on the classpath
Beta Was this translation helpful? Give feedback.
All reactions