Zeppelin uses spark to connect to MySQL and reports an error

Error message

java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver

Cause: the zeppline parser cannot find the driver jar package

Solution

    import the MySQL driver jar package mysql-connector-java-8.0.24.jar into the folder/interpreter in the root directory of Zeppelin, and restart the Zeppelin service

Read More: