I am trying to connect to hive thrift server (hiveserver2) from web application. I created dynamic web project in Eclipse, and added following jars under WEB-INF/lib -
- hive-jdbc-0.14.0-standalone.jar
- hive-jdbc-0.14.0.jar
- hadoop-common-2.6.0.jar
- mongo-hadoop-core.jar
- mongo-hadoop-hive.jar
- mongo-java-driver.jar
I am using tomcat 7.0.61. When I deploy the application to tomcat server, it gives following message and does not load hive-jdbc-0.14.0-standalone.jar
INFO: validateJarFile(C:\EclipseWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\HiveWeb\WEB-INF\lib\hive-jdbc-0.14.0-standalone.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
It seems javax.servlet.Servlet.class in hive-jdbc-0.14.0-standalone.jar and tomcat/lib are conflicting. I need hive-jdbc-0.14.0-standalone.jar for connecting to hiveserver.
I tried to add hive-jdbc-0.14.0-standalone.jar in tomcat/lib directory. But tomcat fail to start due to that.
Is there a way to exclude javax.servlet.Servlet from either hive-jdbc-0.14.0-standalone.jar or tomcat?
hive-jdbc-0.14.0-standalone.jar
; you aren't running standalone. - Mark Rotteveelhive-jdbc-0.14.0.jar
should be sufficient - Mark Rotteveelhive-jdbc-0.14.0.jar
, I getjava.lang.ClassNotFoundException: org.apache.hive.service.cli.thrift.TCLIService$Iface
- kshpra