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
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.
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.
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
Dynamic form for markdown
%md
Hello ${name=bigdata}
Scala with Apache Spark
now we will try scala in our note book. Let is get the version
sc.version
val text = “Hey, scala”
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")
Table magic come in here
By using %table
println("%table student\tsubject\tmarks\nMadhuka\tScience\t95\nJhon\tScience\t85\nJhon\tMaths\t100\n")
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")
Here it also support remote sharing
Next post we will go more in to dynamic form idea and really data analysis
No comments:
Post a Comment