You need to specfiy the following 2 dependencies, see the doc here
http://zeppelin.apache.org/docs/0.6.0/interpreter/hive.html

org.apache.hive:hive-jdbc:0.14.0
org.apache.hadoop:hadoop-common:2.6.0


On Tue, Jul 26, 2016 at 7:30 AM, Kevin Verhoeven <kevin.verhoe...@ds-iq.com>
wrote:

> I built Zeppelin 0.6.0 against CDH 5.7.1 using the following command:
>
>
>
> sudo mvn clean package -Pspark-1.6 -Dhadoop.version=2.6.0-cdh5.7.1
> -Phadoop-2.6 -Pvendor-repo –DskipTests
>
>
>
> Zeppelin started successfully. I then created an Interpreter for Hive
> using the Jdbc Interpreter. I created a new Notebook, bound to the Hive
> Interpreter, and ran a Paragraph. The Hive query failed with the following
> error message:
>
>
>
> org.apache.hive.jdbc.HiveDriver
>
> class java.lang.ClassNotFoundException
>
> java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>
> java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>
> java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>
> java.lang.Class.forName0(Native Method)
>
> java.lang.Class.forName(Class.java:264)
>
>
> org.apache.zeppelin.jdbc.JDBCInterpreter.getConnection(JDBCInterpreter.java:224)
>
>
> org.apache.zeppelin.jdbc.JDBCInterpreter.getStatement(JDBCInterpreter.java:237)
>
>
> org.apache.zeppelin.jdbc.JDBCInterpreter.executeSql(JDBCInterpreter.java:306)
>
>
> org.apache.zeppelin.jdbc.JDBCInterpreter.interpret(JDBCInterpreter.java:412)
>
>
> org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:94)
>
>
> org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:383)
>
> org.apache.zeppelin.scheduler.Job.run(Job.java:176)
>
>
> org.apache.zeppelin.scheduler.ParallelScheduler$JobRunner.run(ParallelScheduler.java:162)
>
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>
> java.util.concurrent.FutureTask.run(FutureTask.java:266)
>
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
>
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>
> java.lang.Thread.run(Thread.java:745)
>
>
>
> The command I ran is very simple:
>
>
>
> %hive
>
> show databases
>
>
>
> Do you have any recommendations?
>
>
>
> Regards,
>
>
>
> Kevin
>



-- 
Best Regards

Jeff Zhang

Reply via email to