Query Processor fails to start due to missing MySQL JDBC driver
Condition
The Query Processor service is unable to load the JDBC driver. As a result, it cannot connect to the MySQL backend database.
The Query Processor service fails, displaying the following error message:
java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver
Cause
The Query Processor no longer includes the MySQL Connector/J JDBC driver by default due to licensing restrictions. As a result, the MySQL driver is not available on the Query Processor classpath when the service starts.
When the Query Processor attempts to initialize a connection to the MySQL
backend, it fails because the required JDBC driver class
(com.mysql.cj.jdbc.Driver) cannot be found. Since the
driver is no longer shipped with the service, it must be manually provided in
the Query Processor’s library directory.
/opt/cloudera/parcels/CDH/lib/hue-query-processor/lib/