java.lang.ClassNotFoundException

com.mysql.jdbc.Driver

Samebug tips10

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 hello_world_from_pyspark.py {file location}"

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web632

  • via Coderanch by Huw Morgan, 9 months ago
    com.mysql.jdbc.Driver
  • via Coderanch by Rajkumar balakrishnan, 9 months ago
    com.mysql.jdbc.Driver
  • com.mysql.jdbc.Driver
  • Stack trace

    • java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at MySQLConnect.<init>(MySQLConnect.java:9) at MySQLConnect.getConnection(MySQLConnect.java:21) at Student.<clinit>(Student.java:7) at StudentGetter.<clinit>(StudentGetter.java:4) at RegisterEngine.<init>(RegisterEngine.java:8) at StudentRegisterApp.main(StudentRegisterApp.java:33)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 4 weeks ago
    Once, 8 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    2 times, 1 year ago
    1386 more bugmates