since I was not using shark Though my aim is to access hive table and run sql using Spark, I am running this code to test. This code has nothing to do with hive table but If I run only this much code I get above exception. I guess it has something to do with authentication, but I can't figure out what. this is my pom.xmlIS there a better way to access hive tables and run queries using servlets?
The missing class "org.apache.hadoop.security.UserGroupInformation" can be found insode the "hadoop-commons" so please try adding that jar inside your servlet classpath. (if its a web application then add it inside the "WEB-INF/lib" of your project.