Skip to content

SerializationException when executing UDF with dependent assemblies #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
guruvonline opened this issue Jul 18, 2019 · 4 comments
Closed

Comments

@guruvonline
Copy link

guruvonline commented Jul 18, 2019

My structured streaming query is calling a UDF which has few dependency dlls(some my code and some third party).

i tried running on Azure Databricks and windows standalone cluster and still get same error "System.Runtime.Serialization.SerializationException: Unable to find assembly 'myassembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null".

for azure Databricks i am using set-jar to trigger job and i have uncommented the dependency copy step in db-int.sh. all the dependent dlls are copied in dbfs.

for windows standalone cluster, i have using spark-submit and have tried --files and sparkcontext.addfile in code. but still it fails. i have tried specifying file as c:\1.dll,2.dll and file:///c:/1.d.

@guruvonline guruvonline added the bug Something isn't working label Jul 18, 2019
@guruvonline guruvonline changed the title specifying dependent assembly for UDF when running on windows standalone cluster SerializationException when executing UDF with dependent assemblies Jul 18, 2019
@rapoth
Copy link
Contributor

rapoth commented Jul 18, 2019

@guruvonline: Thank you! Could you please provide a self-contained sample code and logs?

@imback82
Copy link
Contributor

imback82 commented Jul 18, 2019

Also, are you using 0.3.0 or the master branch? We have some fix on assembly loading in master branch (#135). #135 doesn't support calling static functions in external libraries yet, but it handles more scenarios.

@imback82 imback82 removed the bug Something isn't working label Jul 18, 2019
@imback82
Copy link
Contributor

FYI, we will assign 'bug' label after we identify this issue as a bug.

@imback82
Copy link
Contributor

#180 should fix this. Please reopen this if it doesn't address your scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants