NoClassDefFoundError when trying to use Hive/JDBC from Zeppelin

0

Using EMR 6.1.0 -> Hadoop 3.2.1, Hive 3.1.2, Spark 3.0.0 and Zeppelin 0.9.0, I installed the jdbc interpreter using:
sudo bash bin/install-interpreter.sh -n jdbc --artifact org.apache.zeppelin:zeppelin-jdbc:0.9.0-preview2

(The --artifact flag was required, otherwise the interpreter would not install).

Using the Zeppelin web interface (accessed as localhost:8890 using ssh forwarding), the hive/jdbc interpreter and a simple SELECT statement throws an error (copied below).

I'm not sure what is required to get the setup to recognize PropertiesUtil. Any steps to get the jdbc hive interpreter working in Zeppelin would be appreciated. I have posted to the Zeppelin forums as well, but this may be specific to EMR.


java.lang.NoClassDefFoundError: org/apache/zeppelin/util/PropertiesUtil
at org.apache.zeppelin.jdbc.JDBCInterpreter.createConnectionPool(JDBCInterpreter.java:469)
at org.apache.zeppelin.jdbc.JDBCInterpreter.getConnectionFromPool(JDBCInterpreter.java:485)
at org.apache.zeppelin.jdbc.JDBCInterpreter.getConnection(JDBCInterpreter.java:505)
at org.apache.zeppelin.jdbc.JDBCInterpreter.executeSql(JDBCInterpreter.java:706)
at org.apache.zeppelin.jdbc.JDBCInterpreter.internalInterpret(JDBCInterpreter.java:881)
at org.apache.zeppelin.interpreter.AbstractInterpreter.interpret(AbstractInterpreter.java:47)
at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:110)
at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:684)
at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:577)
at org.apache.zeppelin.scheduler.Job.run(Job.java:172)
at org.apache.zeppelin.scheduler.AbstractScheduler.runJob(AbstractScheduler.java:130)
at org.apache.zeppelin.scheduler.ParallelScheduler.lambda$runJobInScheduler$0(ParallelScheduler.java:39)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: org.apache.zeppelin.util.PropertiesUtil
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 15 more

Edited by: AADC on Sep 15, 2020 9:39 PM

AADC
feita há 4 anos363 visualizações
1 Resposta
0

--artifact org.apache.zeppelin:zeppelin-jdbc:0.9.0-preview1 needed to be installed instead of preview2.

AADC
respondido há 4 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas