From the stack trace you posted, I assume that you run this through IntelliJ and get this error.
POM describes how to create a project, not how to execute a compiled project. In your class, you are not importing org.apache.hive.jdbc.HiveDriver
, so I assume that IntelliJ is not going to guarantee that its containing JAR is passed to the JVM in the classpath.
What I think you need to do in this case is to manually pass the location of the bush bush on the way to the classes. Somewhere in the project settings (NOT POM) in your IDE, where there will be runtime settings, you will need to turn on the cp
command line switch or -classpath
, which will point to the JAR hive. Or, alternatively, you can do as David Fernades says and import a class, which should force IntelliJ to pass the JAR to the classpath.
source share