apache zeppelin hive jdbc mapreduce java.sql.SQLException

时间:2017-03-08 04:57:22

标签: mapreduce hive apache-zeppelin

Zeppelin中的hive JDBC解释器在非MR查询中工作正常。在MR的情况下,得到以下错误

%蜂房 select * from table where month = 2;

获得以下异常: java.sql.SQLException:处理语句时出错:FAILED:执行错误,从org.apache.hadoop.hive.ql.exec.mr.MapRedTask返回代码1     在org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:296)     在org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:291)     在org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:291)     at org.apache.zeppelin.jdbc.JDBCInterpreter.executeSql(JDBCInterpreter.java:577)     at org.apache.zeppelin.jdbc.JDBCInterpreter.interpret(JDBCInterpreter.java:660)     at org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:94)     at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer $ InterpretJob.jobRun(RemoteInterpreterServer.java:489)     在org.apache.zeppelin.scheduler.Job.run(Job.java:175)     在org.apache.zeppelin.scheduler.ParallelScheduler $ JobRunner.run(ParallelScheduler.java:162)     at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)     at java.util.concurrent.FutureTask.run(FutureTask.java:266)     at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 201(ScheduledThreadPoolExecutor.java:180)     at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)     在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)     at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)     在java.lang.Thread.run(Thread.java:745)

0 个答案:

没有答案