Wednesday, April 22, 2015

Zeppelin NoteBook

Here is my previous post to build zeppelin from source. This post will take you a tour on “notebook feature of zeppelin”. NoteBook contain with note. Note will have paragraphs.

1. Start you zeppelin by entering

/incubator-zeppelin $ ./bin/zeppelin-daemon.sh start
p2

2. Go to localhost:8080 and click on ‘NoteBook’ in top menu. Then click on ‘Create new note’. Now you will have note so go for the note you just created.

p3

3. Make you note title as “My Note Book” by click on it. Let interpreter to be default for now.

4. Let add title for note by click on title of the note.

p4

Multiple languages by Zeppelin interpreter

Zeppelin is analytical tool. NoteBook is Multi-purpose  for data ingestion, discovery, visualization. It supports multiple lanuages by Zeppelin interpreter and data-processing-backend also plugable into Zeppelin. Default interpreter  are Scala with Apache Spark, Python with Sparkcontext, SparkSQL, Hive, Markdown and Shell.

Markdown

%md
##Hi Zeppelin

You can run it by press shift + enter or click on play button on top the note or pharagraph

p6

Dynamic form for markdown

%md

Hello ${name=bigdata}

p7

Scala with Apache Spark

now we will try scala in our note book. Let is get the version

sc.version

p9

val text = “Hey, scala”

p8

In my next post will go more deep in scala

Table and Charts

you can used escape characters  ‘/n’ for new line and  ‘/t’ for tab and build below data set (hard coded for sample)

println("student\tsubject\tmarks\nMadhuka\tScience\t95\nJhon\tScience\t85\nJhon\tMaths\t100\n")

p10

Table magic come in here

By using %table

println("%table student\tsubject\tmarks\nMadhuka\tScience\t95\nJhon\tScience\t85\nJhon\tMaths\t100\n")

p10

Adding form by z.input(“key”,”value”)

println("%table student\tsubject\tmarks\nMadhuka\tScience\t"+z.input("Marks", 95)+"\nJhon\tScience\t85\nJhon\tMaths\t100\n")

p11

Here it also support remote sharing

p44

Next post we will go more in to dynamic form idea and really data analysis

No comments:

Post a Comment