Re: UDF does not runs from Zeppelin

2016-07-17 Thread Vinay Shukla
Gilad, I have a simple UDF to convert date running successfully with Zeppelin 0.6.0 & Spark 1.6.1 ## UDF import org.apache.spark.sql.functions._ import org.apache.spark.sql.types._ import java.text.SimpleDateFormat val toDate = udf((t: String) =>{ val sdf = new SimpleDateFormat("MM/dd/y

UDF does not runs from Zeppelin

2016-07-17 Thread Gilad Landau
Hi, I'm trying to run simple UDF functions from Zeppelin and fail. I'm using Zeppelin 0.5.6 and it's not even working on the simple Tutorial example, even though it does work from shell: This is what I run: def sentiment(s:String) : String = { val positive = Array("like", "love", "good", "gre