openshift-metering hive-metastore not starting with error datastore driver was not found in the CLASSPATH

Solution Verified - Updated -

Issue

  • After upgrading metering operator to OCP 4.6 fails to start with error:

    21/01/07 13:10:37 [main]: INFO metastore.HiveMetaStore: 0: Opening raw store with implementation class:org.apache.hadoop.hive.metastore.ObjectStore
    21/01/07 13:10:37 [main]: INFO metastore.ObjectStore: ObjectStore, initialize called
    21/01/07 13:10:37 [main]: ERROR DataNucleus.Datastore: Exception thrown creating StoreManager. See the nested exception
    org.datanucleus.exceptions.NucleusException: Error creating transactional connection factory
    (...)
    Caused by: org.datanucleus.exceptions.NucleusException: Attempt to invoke the "BONECP" plugin to create a ConnectionPool gave an error : 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.
    (...)
    Caused by: 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.
    (...)
    

Environment

  • Red Hat OpenShift Container Platform (OCP)
    • 4.6
    • 4.7
    • 4.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content