加载Hive驱动程序时出错:ClassNotFoundException:org.apache.hive.jdbc.HiveDriver

时间:2018-05-01 09:28:21

标签: java jdbc hive

将Java与Hive连接时,我收到此错误

java.lang.ClassNotFoundException: org.apache.hive.jdbc.HiveDriver
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:190)
    at com.scsu.auth.DBAuth.getHIVEAnalysisConnection(DBAuth.java:45)
    at com.scsu.dao.HIVEDAOImpl.getDatabaseTables(HIVEDAOImpl.java:83)
    at com.scsu.facade.HIVEFacadeImpl.getDatabaseTables(HIVEFacadeImpl.java:18)
    at com.scsu.servlets.LoginServlet.doPost(LoginServlet.java:59)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

在我看来,这个错误是由于缺少Hive驱动程序

0 个答案:

没有答案