Save Report separately

2016-10-26 Thread Nirav Patel
Is there a way to save state of the notebook in form of "Report" view so it
can be used later for comparison or just kept for bookkeeping. Currently
only way I can think of to do this is to clone a new notebook every time
you want to keep state of Report.

Thanks

-- 


[image: What's New with Xactly] 

  [image: LinkedIn] 
  [image: Twitter] 
  [image: Facebook] 
  [image: YouTube] 



Is it possible to run a paragraph in other notebook?

2016-10-26 Thread afancy
Hi,

If using z.run() command, is it possible to run the paragraph from
different notebook?

Thanks

/afancy


Re: Use sql interpreter to fill up dynamic forms dropdown list

2016-10-26 Thread moon soo Lee
Hi,

Have you tried
http://zeppelin.apache.org/docs/latest/manual/dynamicform.html#select-form ?

Thanks,
moon

On Tue, Oct 25, 2016 at 12:15 AM Manjunath, Kiran 
wrote:

> Hello All,
>
>
>
> I have a question on creating dropdown list (dynamic forms) using psql
> interpreter.
>
> I am using 0.6 version.
>
>
>
> I have connected my zeppeline to postgresql using the native driver
> provided in the zeppeline package.
>
> I have a column - ID (of a table say 'a') which consist of all the ID's
> required for further processing.
>
>
>
> 
>
> ID  |   Value 1 |   Value2
>
> 
>
> 1   |   23  |   text1
>
> 2   |   13  |   text2
>
> 3   |   03  |   text3
>
> 4   |   99  |   text4
>
> 5   |   12  |   text5
>
>
>
>
>
> Now, how do I fill this ID column into dynamic form for further user drop
> down selection?
>
>
>
> PS: I know I can use spark context and JDBC drive. But that would be a
> overkill.
>
> All my further processing is with the DB itself for analysis.
>
> So I would prefer to create dropdown dynamic form from the psql
> interpreter itself.
>
>
>
> Thanks for help in advance.
>
>
>
> Regards,
>
> Kiran
>
>
>


Spark Streaming error in zeppelin paragraph: java.lang.NoClassDefFoundError:

2016-10-26 Thread afancy
Dear all,

I pull  zeppelin from github, and  build. I run the following Spark
streaming code in a paragraph, but got the NoClassDefFoundError. Could
anybody help? thanks!

import org.apache.spark._
import org.apache.spark.streaming._
import org.apache.spark.streaming.StreamingContext._


case class Loc(lat: Double, lon: Double)
case class message(info: String, loc: Loc)

val ssc = new StreamingContext(sc, Seconds(5))
val input = ssc.socketTextStream("localhost", 12397)


input.foreachRDD(rdd => {
val df = rdd.map(s => message(
  s.info,
  Loc(s.lat, s.lon)
  )
)

var items = df.collect
z.angularBind("locations", items)
})

ssc.start()


import org.apache.spark._
import org.apache.spark.streaming._
import org.apache.spark.streaming.StreamingContext._
defined class Loc
defined class message
ssc: org.apache.spark.streaming.StreamingContext =
org.apache.spark.streaming.StreamingContext@657c0ac3
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.spark.rdd.RDDOperationScope$
at
org.apache.spark.streaming.StreamingContext.withNamedScope(StreamingContext.scala:273)
at
org.apache.spark.streaming.StreamingContext.socketTextStream(StreamingContext.scala:301)
... 100 elided