Re: StateSpec raises error "missing arguments for method"

2016-03-27 Thread Cyril Scetbon
hmm, I finally found that the following syntax works better : scala> val mappingFunction = (key: String, value: Option[Int], state: State[Int]) => { | Option(key) | } mappingFunction: (String, Option[Int], org.apache.spark.streaming.State[Int]) => Option[String] = scala> val spec = S

StateSpec raises error "missing arguments for method"

2016-03-27 Thread Cyril Scetbon
Hi, I'm testing a sample code and I get this error. Here is the sample code I use : scala> import org.apache.spark.streaming._ import org.apache.spark.streaming._ scala> def mappingFunction(key: String, value: Option[Int], state: State[Int]): Option[String] = { |Option(key) | } ma