githubprogramman / ztools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZTools

JetBrains incubator project

Wrapper for scala interpreter for use with Apache Zeppelin server to provide values of variables between paragraphs execution.

Used to provide variable view functionality for Jetbrains Big Data Tools plugin.

How it works

The library allows us to access the current state of scala REPL and save the values of variables as JSON.

Some computations may be performed for some types to save state that is not accessible readily as a set of fields (for example, this is the case for the number of partitions for RDD).

These values can then be of use, in particular in Apache Zeppelin integration for Big Data Tools plugin we can show the collected values in variables view panel - an alternative to debugger evaluation in spark runtime.

Usage

To use ZTools with Big Data Tools you need to do 2 things.

  1. In Zeppelin connection settings in BDT plugin please click to Enable ZTools Integration (Experimental) and save settings.

  2. You need to install the ZTools jar to the Zeppelin server. You can do it in auto and manual ways. The automatic way is to click to Install ZTools... in a bubble that appears after enabling ZTools integration in settings. The library will be download from maven repo https://jetbrains.bintray.com/zeppelin-dependencies. During this operation, the repository and the dependency on the Zeppelin interpreter will be added.

If you do not have the permissions to add repositories and dependencies to Zeppelin interpreters you need to ask the administrators to do it manually. You can add dependency as a file jar (https://dl.bintray.com/jetbrains/zeppelin-dependencies/org/jetbrains/ztools/ztools-spark-all/0.0.13/ztools-spark-all-0.0.13.jar) or add to Zeppelin maven repo (https://jetbrains.bintray.com/zeppelin-dependencies) and maven artifact (org.jetbrains.ztools:ztools-spark-all:0.0.13).

After install, you need to run any paragraph in a Zeppelin notebook to collect data from the server.

For stand-alone usage see org.jetbrains.ztools.spark.Tools.init method for initialization and Tools.getEnv to get current state.

Resources

If you need support: Our Slack channel

Apache Zeppelin (https://zeppelin.apache.org/)

Big Data Tools (https://plugins.jetbrains.com/plugin/12494-big-data-tools)

License

Apache v2.

About

License:Apache License 2.0


Languages

Language:Scala 91.3%Language:Java 8.7%