zeppelin/java
Philipp Dallig 37630f2e4e
[ZEPPELIN-5522] Remove unnecessary maven-dependency-plugin maven plugin calls
### What is this PR for?
This PR removes unnecessary maven-dependency-plugin maven plugin calls

### What type of PR is it?
 - Refactoring

### What is the Jira issue?
* https://issues.apache.org/jira/browse/ZEPPELIN-5522

### How should this be tested?
* CI

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Philipp Dallig <philipp.dallig@gmail.com>

Closes #4224 from Reamer/maven-dependency-plugin and squashes the following commits:

1a73f4f29 [Philipp Dallig] Remove maven-dependency-plugin from zeppelin-distribution
aa5d203d9 [Philipp Dallig] Remove maven-dependency-plugin from zeppelin-interpreter-parent
ff562e246 [Philipp Dallig] Remove plugin maven-dependency-plugin, which is skipped by default in zeppelin-interpreter-parent
43ee00ca7 [Philipp Dallig] Skip maven-dependency-plugin copy-plugin-dependencies for k8s-standard
2021-09-17 11:44:10 +02:00
..
src [ZEPPELIN-5044] Refactoring some viewed classes 2020-09-17 08:57:00 +02:00
pom.xml [ZEPPELIN-5522] Remove unnecessary maven-dependency-plugin maven plugin calls 2021-09-17 11:44:10 +02:00
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.