From 8f0ba72dfab23f4d72a59fea4290ce0770e7e338 Mon Sep 17 00:00:00 2001 From: Khalid Huseynov Date: Mon, 20 Apr 2015 10:48:27 +0900 Subject: [PATCH 1/5] minor fixes to docs/interpreter/spark --- docs/interpreter/spark.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/interpreter/spark.md b/docs/interpreter/spark.md index 3bab5cc3411..452cd3a1500 100644 --- a/docs/interpreter/spark.md +++ b/docs/interpreter/spark.md @@ -36,7 +36,7 @@ Spark Interpreter group, which consisted of 4 interpreters. %dep DepInterpreter - Depdency loader + Dependency loader @@ -46,7 +46,7 @@ Spark Interpreter group, which consisted of 4 interpreters. ### SparkContext, SQLContext, ZeppelinContext -SparkContext, SQLContext, ZeppelinContext are automatically created and exposed as variable name 'sc', 'sqlContext' and 'z' respectively, Both scala and python environment. +SparkContext, SQLContext, ZeppelinContext are automatically created and exposed as variable names 'sc', 'sqlContext' and 'z', respectively, both in scala and python environments. Note that scala / python environment shares the same SparkContext, SQLContext, ZeppelinContext instance. @@ -107,7 +107,7 @@ Note that %dep interpreter should be used before %spark, %pyspark, %sql. ### ZeppelinContext -Zeppelin automatically inject ZeppelinContext as variable 'z' in your scala/python environment. ZeppelinContext provides some addtional functions and utility. +Zeppelin automatically injects ZeppelinContext as variable 'z' in your scala/python environment. ZeppelinContext provides some addtional functions and utility.
#### Object exchange @@ -134,7 +134,7 @@ myObject = z.get("objName") #### Form creation ZeppelinContext provides functions for creating forms. -In scala and python environment, you can create forms programtically. +In scala and python environments, you can create forms programmatically. ```scala %spark @@ -160,4 +160,4 @@ In sql environment, you can create form in simple template. select * from ${table=defualtTableName} where text like '%${search}%' ``` -To learn more about dynamic form, checkout [Dynamic Form](../dynamicform.html). \ No newline at end of file +To learn more about dynamic form, checkout [Dynamic Form](../dynamicform.html). From 59e4f8d2940af084d455e413c039bdba4738d003 Mon Sep 17 00:00:00 2001 From: Khalid Huseynov Date: Mon, 20 Apr 2015 10:57:50 +0900 Subject: [PATCH 2/5] minor fixes to docs/dynamicform --- docs/dynamicform.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/dynamicform.md b/docs/dynamicform.md index adbc563f144..36d1a0c5ecb 100644 --- a/docs/dynamicform.md +++ b/docs/dynamicform.md @@ -9,8 +9,8 @@ group: manual ## Dynamic Form -Zeppelin dynamically creates input forms. Depend on language backend, there're two different way to create dynamic form. -Custom lanaugage backend can select which type of form creation he want to use. +Zeppelin dynamically creates input forms. Depending on language backend, there're two different ways to create dynamic form. +Custom language backend can select which type of form creation it wants to use.
### Using form Templates @@ -46,9 +46,9 @@ Also you can separate option's display name and value, using _${formName=default
-### Creates Programatically +### Creates Programmatically -Some language backend use programtic way to create form. for example [ZeppelinContext](./interpreter/spark.html#zeppelincontext) provides form creation API +Some language backend uses programmatic way to create form. For example [ZeppelinContext](./interpreter/spark.html#zeppelincontext) provides form creation API Here're some examples. @@ -62,4 +62,4 @@ Text input form with default value Select form - \ No newline at end of file + From c6915587e4160ba3fb44a746d41e1b4876989313 Mon Sep 17 00:00:00 2001 From: Khalid Huseynov Date: Mon, 20 Apr 2015 11:09:39 +0900 Subject: [PATCH 3/5] minor fixes to docs/display --- docs/display.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/display.md b/docs/display.md index 4f9a7dc3e0c..816443dda18 100644 --- a/docs/display.md +++ b/docs/display.md @@ -9,8 +9,8 @@ group: manual ### Display -Zeppelin prints output of langauge backend in text, default. -However, if output contains some magic keyword, Zeppelin automatically formatting the output as Table, Chart, Image, Html. +Zeppelin prints output of language backend in text, by default. +However, if output contains some magic keyword, Zeppelin automatically formatting the output as Table, Chart, Image, or Html.
#### Display as Text @@ -22,20 +22,20 @@ If output has no magic keyword provided Zeppelin print the output in text.
#### Display as Html -If ouput starts with %html, it interpreted as a html code. +If output starts with %html, it is interpreted as an html code.
#### Display as Table, Chart -If ouput starts with %table, it interpreted as a table. Table can be seen as chart. +If output starts with %table, it is interpreted as a table. Table can be seen as chart. Output's format should be, row separated by '\n' (newline) and column separated by '\t' (tab). First row is header. -If table contents start with %html, it is interpreted as a HTML. +If table contents start with %html, it is interpreted as an HTML. @@ -44,4 +44,4 @@ If table contents start with %html, it is interpreted as a HTML. If output starts with %img, it is interpreted as base64 encoded image. - \ No newline at end of file + From 62ee47c3f8b9f9072341499548eea647128f1ca4 Mon Sep 17 00:00:00 2001 From: Khalid Huseynov Date: Mon, 20 Apr 2015 11:23:35 +0900 Subject: [PATCH 4/5] minor fixes to docs/development/writingzeppelininterpreter --- docs/development/writingzeppelininterpreter.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/development/writingzeppelininterpreter.md b/docs/development/writingzeppelininterpreter.md index c4d718be11c..5f3eaeaa956 100644 --- a/docs/development/writingzeppelininterpreter.md +++ b/docs/development/writingzeppelininterpreter.md @@ -8,17 +8,17 @@ group: development ### What is Zeppelin Interpreter -Zeppelin Interpreter is language backend. For example to use scala code in Zeppelin, you need scala interpreter. -Every Interpreter's are belongs to InterpreterGroup. InterpreterGroup is unit of start/stop interpreter. -Interpreters in the same InterpreterGroup can reference each other. For example, SparkSqlInterpreter can refernece SparkInterpreter to get SparkContext from it while they're in the same group. +Zeppelin Interpreter is a language backend. For example to use scala code in Zeppelin, you need scala interpreter. +Every Interpreter belongs to an InterpreterGroup. InterpreterGroup is a unit of start/stop interpreter. +Interpreters in the same InterpreterGroup can reference each other. For example, SparkSqlInterpreter can reference SparkInterpreter to get SparkContext from it while they're in the same group. -Interpreter can be launched either using separate classloader or separate JVM process. Sometimes separate classloader cause problem especially when your interpreter uses reflections or trying to grab standard out/err. In this case, separate JVM process is the option you can select. (by checking 'fork' in Interpreter menu, which is default value) When Interpreter is running in separate JVM process, it's communicating with Zeppelin via thrift. +Interpreter can be launched either using separate classloader or separate JVM process. Sometimes separate classloader causes problem especially when your interpreter uses reflections or trying to grab standard out/err. In this case, separate JVM process is the option you can select. (by checking 'fork' in Interpreter menu, which is default value) When Interpreter is running in separate JVM process, it's communicating with Zeppelin via thrift. ### Make your own Interpreter -Creating a new interpreter is quite simple. Just extends [com.nflabs.zeppelin.interpreter](https://github.com/NFLabs/zeppelin/blob/master/zeppelin-interpreter/src/main/java/com/nflabs/zeppelin/interpreter/Interpreter.java) abstract class and implement some methods. +Creating a new interpreter is quite simple. Just extend [com.nflabs.zeppelin.interpreter](https://github.com/NFLabs/zeppelin/blob/master/zeppelin-interpreter/src/main/java/com/nflabs/zeppelin/interpreter/Interpreter.java) abstract class and implement some methods. You can include com.nflabs.zeppelin:zeppelin-interpreter:[VERSION] artifact in your build system. From 15a72fc63cfe4f6536d317a8425d2c1261743dcd Mon Sep 17 00:00:00 2001 From: Khalid Huseynov Date: Mon, 20 Apr 2015 11:27:58 +0900 Subject: [PATCH 5/5] minor fixes to docs/development/howtocontribute --- docs/development/howtocontribute.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/development/howtocontribute.md b/docs/development/howtocontribute.md index 417eb5ab4d4..9ebbd6c9309 100644 --- a/docs/development/howtocontribute.md +++ b/docs/development/howtocontribute.md @@ -13,7 +13,7 @@ Any contribution to Zeppelin (Source code, Documents, Image, Website) means you ### Setting up -Here are some things you will need to build and test Zeppelin. +Here are some things you will need to do to build and test Zeppelin. #### Software Configuration Management(SCM) @@ -49,7 +49,7 @@ git clone -b branch-0.1 https://github.com/NFLabs/zeppelin.git zeppelin #### Fork repository -If you want not only build Zeppelin but also make change, then you need fork Zeppelin repository and make pull request. +If you want not only build Zeppelin but also make changes, then you need to fork Zeppelin repository and make pull request. ###Build