Skip to content

SerializationException when executing UDF with dependent assemblies #178

Closed
@guruvonline

Description

@guruvonline

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions