当前位置: 代码迷 >> 综合 >> spark-sql执行报错No suitable driver found for jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=
  详细解决方案

spark-sql执行报错No suitable driver found for jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=

热度:53   发布时间:2024-01-29 15:35:18.0

未指定--driver-class-path

正确指令:

spark-sql local[2] --jars ~/software/mysql-connector-java-5.1.27-bin.jar --driver-class-path ~/software/mysql-connector-java-5.1.27-bin.jar

  相关解决方案