Hi Antonio, I am not sure you got the silent treatment on the user list. Stackoverflow is also a good place to ask questions.
Could you use an absolute path to add the jar file. So instead of './my resource file' (which is a relative path; this depends on where you started Spark), use something like this '/some/path/my resource file' or use an URI. Kind regards, Herman van Hövell 2016-02-03 19:17 GMT+01:00 Antonio Piccolboni <anto...@piccolboni.info>: > Sorry if this is more appropriate for user list, I asked there on 12/17 > and got the silence treatment. I am writing a UDF that needs some > additional info to perform its task. This information is in a file that I > reference in a SQL ADD FILE statement. I expect that file to be accessible > in the working directory for the UDF, but it doesn't seem to work (aka, > failure on open("./my resource file"). What is the correct way to access > the added resource? Thanks > > > Antonio >