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
질문됨 4년 전363회 조회
1개 답변
0

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

AADC
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠