Re: Reify (run vs cloverage) (single node vs cluster)

2019-01-02 Thread cloje
Thanks Justin, I changed to deftype and it seems to be working fine on Cloverage on my local machine. I'm gonna try it on cluster mode and will update if that worked or not. Happy new year! :) On Monday, December 31, 2018 at 9:36:07 PM UTC-6, Justin Smith wrote: > > Just a hunch, but many

Re: Reify (run vs cloverage) (single node vs cluster)

2018-12-31 Thread Justin Smith
Just a hunch, but many cluster / distribution tools expect that a given Class name will refer to the same Class on each peer. You cannot ensure this with reify- the name is auto-generated. The solution might be using deftype or gen-class so that the class name would be deterministic and shared on

Reify (run vs cloverage) (single node vs cluster)

2018-12-31 Thread cloje
I'm really struck at the point where I'm using reify in clojure to implement java interface "org.apache.spark.sql.api.java.UDF2" and define the method "call" in this interface. I've been able to use reify to implement and it works fine when I do a "lein run", I see that this udf is being