Database / data source URL format / driver name Value Default port MySQL URL format: jdbc:mysql://<HOST>:<PORT>/<DATABASE_NAME> 3306 Driver name: com.mysql.jdbc.Driver Microsoft SQL Server URL format: jdbc:microsoft:sqlserver
通过Spark SQL External Data Sources JDBC实现将RDD的数据写入到MySQL数据库中. jdbc.scala重要API介绍: /** * Save this RDD to a JDBC database at `url` under the table name `table`. * This will run a `CREATE TABLE` and a bunch of `INSERT INTO` statements. * If you pass `tru