Re: Problem creating objects through reflection

2014-05-14 Thread Rohit Rai
Hi Piotr, The easiest solution to this for now is to write all your code (including the case class) inside a Object and the execution part in a method in the object. Then you can call the method on the spark shell to executed your code. Cheers, Rohit *Founder & CEO, **Tuplejump, Inc.* _

Re: Problem creating objects through reflection

2014-04-25 Thread Piotr Kołaczkowski
Yeah, this is related. From https://groups.google.com/forum/#!msg/spark-users/bwAmbUgxWrA/HwP4Nv4adfEJ: "This is a limitation that will hopefully go away in Scala 2.10 or 2.10 .1, when we'll use macros to remove the need to do this. (Or more generally if we get some changes in the Scala interprete

Re: Problem creating objects through reflection

2014-04-24 Thread Michael Armbrust
The Spark REPL is slightly modified from the normal Scala REPL to prevent work from being done twice when closures are deserialized on the workers. I'm not sure exactly why this causes your problem, but its probably worth filing a JIRA about it. Here is another issues with classes defined in the