Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

Re: Zeppelin Java code in paragraph (NullPointerException)

Expert Contributor

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

5 REPLIES 5

Re: Zeppelin Java code in paragraph (NullPointerException)

Expert Contributor

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

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.

Re: Zeppelin Java code in paragraph (NullPointerException)

Expert Contributor

That is scala code.

Re: Zeppelin Java code in paragraph (NullPointerException)

Expert Contributor

och, ok, thank you.

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

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

Don't have an account?
Coming from Hortonworks? Activate your account here