You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/development/writingzeppelinapplication.md
+29-27Lines changed: 29 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,16 @@ limitations under the License.
19
19
-->
20
20
{% include JB/setup %}
21
21
22
-
# What is Zeppelin Application (Experimental)
22
+
# Writing a new Application (Experimental)
23
23
24
-
Apache Zeppelin Application is a package that runs on Interpreter process and displays it's output inside of the notebook. While application runs on Interpreter process, it's able to access resources provided by Interpreter through ResourcePool. Output is always rendered by AngularDisplaySystem. Therefore application provides all the possiblities of making interactive graphical application that uses data and processing power of any Interpreter.
24
+
<divid="toc"></div>
25
+
26
+
## What is Apache Zeppelin Application
25
27
28
+
Apache Zeppelin Application is a package that runs on Interpreter process and displays it's output inside of the notebook. While application runs on Interpreter process, it's able to access resources provided by Interpreter through ResourcePool. Output is always rendered by AngularDisplaySystem. Therefore application provides all the possiblities of making interactive graphical application that uses data and processing power of any Interpreter.
26
29
27
30
28
-
## Writing your own Application
31
+
## Make your own Application
29
32
30
33
Writing Application means extending `org.apache.zeppelin.helium.Application`. You can use your favorite IDE and language while Java class files are packaged into jar. `Application` class looks like
31
34
@@ -57,7 +60,7 @@ You can check example applications under [./zeppelin-examples](https://github.co
57
60
58
61
In the development mode, you can run your Application in your IDE as a normal java application and see the result inside of Zeppelin notebook.
59
62
60
-
org.apache.zeppelin.interpreter.dev.ZeppelinApplicationDevServer can run Zeppelin Application in development mode.
63
+
`org.apache.zeppelin.interpreter.dev.ZeppelinApplicationDevServer` can run Zeppelin Application in development mode.
Entry point. Class that extends `org.apache.zeppelin.helium.Application`
139
142
140
-
141
143
#### resources
142
144
143
-
Two dimensional array that defines required resources by name or by className. Helium Application launcher will compare resources in the ResourcePool with informations in this field and suggest application only when all required resources are available in the ResourcePool.
145
+
Two dimensional array that defines required resources by name or by className. Helium Application launcher will compare resources in the ResourcePool with the information in this field and suggest application only when all required resources are available in the ResourcePool.
144
146
145
-
Resouce name is a string which will be compared with name of objects in the ResourcePool. className is a string with ":" prepended, which will be compared with className of the objects in the ResourcePool.
147
+
Resouce name is a string which will be compared with the name of objects in the ResourcePool. className is a string with ":" prepended, which will be compared with className of the objects in the ResourcePool.
146
148
147
-
Application may require two or more resources. Required resource can be listed inside of json array. For example, if application requires object "name1", "name2" and "className1" type of object to run, resources field can be
149
+
Application may require two or more resources. Required resources can be listed inside of the json array. For example, if the application requires object "name1", "name2" and "className1" type of object to run, resources field can be
148
150
149
151
```
150
152
resources: [
151
153
[ "name1", "name2", ":className1", ...]
152
154
]
153
155
```
154
156
155
-
If Application can handle alternative combination of required resource, alternative set can be listed as below.
157
+
If Application can handle alternative combination of required resources, alternative set can be listed as below.
156
158
157
159
```
158
160
resources: [
@@ -162,7 +164,7 @@ resources: [
162
164
]
163
165
```
164
166
165
-
Easier way of understanding this scheme is
167
+
Easier way to understand this scheme is
166
168
167
169
```
168
170
resources: [
@@ -175,7 +177,7 @@ resources: [
175
177
176
178
#### icon
177
179
178
-
Icon to be used on the application button. String in this field will be rendered as a html.
180
+
Icon to be used on the application button. String in this field will be rendered as a HTML tag.
0 commit comments