I am trying to write a spark data frame to MYSQL table. I tried the following method:
dataFrame.write().mode(SaveMode.Append).format(JDBC).options(options);
options is a map of the following key-value pair:
- "url", "jdbc:oracle:thin:@localhost:1521:xe"
- "password", "pass"
- "driver", "oracle.jdbc.driver.OracleDriver"
- "user","username"
- "dbtable","tableName"
table 'tableName' is not getting updated and I am not getting any error in spark console. Can someone help me with this?