apache / doris-spark-connector

Spark Connector for Apache Doris
https://doris.apache.org/
Apache License 2.0
79 stars 92 forks source link

[Bug] SaveMode.Overwrite failed write data to doris #213

Closed qg-lin closed 2 months ago

qg-lin commented 3 months ago

Search before asking

Version

spark-doris-connector-3.2_2.12:1.3.2

What's Wrong?

When use SaveMode.Overwrite to write dataframe, 'No suitable driver found for jdbc' exception occured. dcc0133c324068c1ef55c4df2b8b11f

What You Expected?

success write data to doris by SaveMode.Overwrite

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

Code of Conduct

gnehil commented 3 months ago

This is due to missing JDBC driver package. You need to place the mysql jdbc driver package in the spark classpath, or set the --jars option to specify the corresponding jar when executing the spark-submit command.