Support Questions
Find answers, ask questions, and share your expertise

Zeppelin Java code in paragraph (NullPointerException)

Solved Go to solution

Zeppelin Java code in paragraph (NullPointerException)

Expert Contributor

Hi,

How to configure Java code to work? When I type Java code in the paragraph with no prefix (%) I got NullPointerException in log and nothing on the screen (only word "Error").

Thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Zeppelin Java code in paragraph (NullPointerException)

Expert Contributor

I don't think currently there's any java interpreter for zeppelin.

View solution in original post

5 REPLIES 5
Highlighted

Re: Zeppelin Java code in paragraph (NullPointerException)

Expert Contributor

I don't think currently there's any java interpreter for zeppelin.

View solution in original post

Highlighted

Re: Zeppelin Java code in paragraph (NullPointerException)

Expert Contributor

@jzhang

I am using Zeppelin 0.6.0 and there is a template Notebook "Zeppelin Tutorial" that uses Java code with no prefix and it works.

Highlighted

Re: Zeppelin Java code in paragraph (NullPointerException)

Expert Contributor

That is scala code.

Highlighted

Re: Zeppelin Java code in paragraph (NullPointerException)

Expert Contributor

och, ok, thank you.

But there is still no prefix so it uses %spark right?

Highlighted

Re: Zeppelin Java code in paragraph (NullPointerException)

Mentor

@Edgar Daeds In Apache Zepplin 0.7 there will be an Apache Beam Interpreter that by default will have Java REPL. You can use Beam API to work with Spark, Flink, Mapreduce and Google Dataflow https://zeppelin.apache.org/docs/0.7.0-SNAPSHOT/interpreter/beam.html