HTTP狀態500 - 發生異常處理JSP頁/serverside.jsp在管線34這裏有什麼特殊情況?
類型異常報告
消息時發生異常處理JSP頁/serverside.jsp在管線34
description服務器遇到內部錯誤,導致無法完成此請求。
例外
org.apache.jasper.JasperException:發生異常處理JSP頁/serverside.jsp在管線34
31: </head>
32: <body>
33: <%
34: Connection connection = DriverManager.getConnection("jdbc:hive://localhost:10000/nikhildb","","");
35: Statement statement = connection.createStatement();
36: String country_name = request.getParameter("country_name");
37: ResultSet rs = statement.executeQuery("Select * from population where country_name ='"+country_name+"'");
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:575)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:462)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause
javax.servlet.ServletException: java.lang.NoSuchMethodError: org.apache.hadoop.hive.service.ThriftHive$Client.sendBase(Ljava/lang/String;Lorg/apache/thrift/TBase;)V
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:916)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:845)
org.apache.jsp.serverside_jsp._jspService(serverside_jsp.java:401)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
根源
java.lang.NoSuchMethodError:有機.apache.hadoop.hive.service.ThriftHive $ Client.sendBase(Ljava/lang/String; Lorg/apache/thrift/TBase;)V org.apache.hadoop.hive.service.ThriftHive $ Client.send_execute(ThriftHive。 java:110) org.apache .hadoop.hive.service.ThriftHive $ Client.execute(ThriftHive.java:102) org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:192) org.apache.hadoop.hive.jdbc .HiveStatement.execute(HiveStatement.java:132) org.apache.hadoop.hive.jdbc.HiveConnection.configureConnection(HiveConnection.java:133) org.apache.hadoop.hive.jdbc.HiveConnection。(HiveConnection.java: 122) org.apache.hadoop.hive.jdbc.HiveDriver.connect(HiveDriver.java:106) java.sql.DriverManager.getConnection(DriverManager.java:571) java.sql.DriverManager.getConnection(DriverManager.java :215) org.apache.jsp.serverside_jsp._jspService(serverside_jsp.java:119) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:790) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:395) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) javax.servlet.http.HttpServlet.service(HttpServlet.java:790) org.apache.tomcat.websocket。 server.WsFilter.doFilter(WsFilter.java:52) note注意根源的完整堆棧跟蹤在Apache Tomcat/7.0.68日誌中可用。
很爲hiveserver1和hiveserver2.Should我什麼比蜂巢--service hiveserver
的可能的複製[HIVE JDBC ThriftHive $ Client.sendBase(http://stackoverflow.com/questions/17739020/hive-jdbc-thrifthiveclient-sendbase) –