You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been following the README instructions to deploy my .NET Spark app (including a user-defined function) to Azure Databricks. I've found the application runs correctly, except for the UDF, which fails with the documented file not found error. I've run into the following unexpected behaviour related to that:
My UDF is defined in the same assembly as the Spark program. Why do I need to upload it to DBFS or similar and set DOTNET_ASSEMBLY_SEARCH_PATHS for it to be resolved?
Uploading a DLL to the same path as the zip file containing my application results in a JVM error from Spark trying to load it as a JAR, and causes the job to fail before it even starts.
Specifying DOTNET_ASSEMBLY_SEARCH_PATHS=. does not resolve the file not found error. The documentation is vague on what . means, and I'm surprised that this a) isn't a default search path anyway, and b) the required assembly isn't in that path (whatever it resolves to).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been following the README instructions to deploy my .NET Spark app (including a user-defined function) to Azure Databricks. I've found the application runs correctly, except for the UDF, which fails with the documented file not found error. I've run into the following unexpected behaviour related to that:
DOTNET_ASSEMBLY_SEARCH_PATHS
for it to be resolved?DOTNET_ASSEMBLY_SEARCH_PATHS=.
does not resolve the file not found error. The documentation is vague on what.
means, and I'm surprised that this a) isn't a default search path anyway, and b) the required assembly isn't in that path (whatever it resolves to).Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions