Error while Starting Hive – DatastoreDriverNotFoundException

Here is a scary exception thrown out when I started Hive.

org.datanucleus.store.rdbms.connectionpool.DatastoreDriverNotFoundException: The specified datastore driver (“com.mysql.jdbc.Driver”) was not found in the CLASSPATH. Please check your CLASSPATH specification, and the name of the driver.

I forgot to copy the mysql driver to hive lib folder. Here is the command to copy the same

cp /usr/share/java/mysql-connector-java-5.1.38.jar /opt/hadoop/hive/lib/

 

1 thought on “Error while Starting Hive – DatastoreDriverNotFoundException”

  1. Pingback: Hive installation & configuration | JavaShine

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top