zeppelin/java
Prabhjyot Singh 7d83d77886
[ZEPPELIN-4244] Intellij shows URI not regietered error for xmlns urls
This issue is based out of comment https://github.com/apache/zeppelin/pull/3370#issuecomment-511281165, where Injellij shows unknown error.

[Improvement]

* [ZEPPELIN-4244](https://issues.apache.org/jira/browse/ZEPPELIN-4244)

* CI should be green
* Intellij IDE should not show any error

* Does the licenses files need update? N/A
* Is there breaking changes for older versions? N/A
* Does this needs documentation? N/A

Author: Prabhjyot Singh <prabhjyot.singh@cloudera.com>

Closes #3409 from prabhjyotsingh/ZEPPELIN-4244 and squashes the following commits:

840ef118b [Prabhjyot Singh] ZEPPELIN-4244: Intellij shows URI not regietered error for xmlns urls

Change-Id: I88afbbb79967648f2932d33524e68fb2c5670006
2019-07-19 14:31:44 +05:30
..
src ZEPPELIN-3880: Code refactoring: remove class files using a Java stream 2019-01-30 15:36:41 +08:00
pom.xml [ZEPPELIN-4244] Intellij shows URI not regietered error for xmlns urls 2019-07-19 14:31:44 +05:30
README.md [ZEPPELIN-3653] - New Java interpreter 2018-08-03 09:15:19 +08:00

Overview

Java interpreter for Apache Zeppelin

Architecture

Current interpreter implementation supports the static REPL. It compiles the code in memory, execute it and redirect the output to Zeppelin.

Technical overview

  • Upon starting an interpreter, an instance of JavaCompiler is created.

  • When the user runs commands with java, the JavaParser go through the code to get a class that contains the main method.

  • Then it replaces the class name with random class name to avoid overriding while compilation. It creates new out & err stream to get the data in new stream instead of the console, to redirect output to Zeppelin.

  • If there is any error during compilation, it can catch and redirect to Zeppelin.

  • JavaInterpreterUtils contains useful methods to print out Java collections and leverage Zeppelin's built in visualization.