sql server - spark dataframe not appending to the table -
i unable append table when writing table using dataframe write
here command using
df1.write.mode("append").jdbc("jdbc:jtds:sqlserver://noi-nipuna-w81/sams","sams", props) exception java.sql.sqlexception: there object named 'sams' in database. @ net.sourceforge.jtds.jdbc.sqldiagnostic.adddiagnostic(sqldiagnostic.java:372) where making mistake using spark 1.4 version
urug , hafiz have answered. below code did job me.
sqldf .write() .mode(savemode.append) .jdbc(jdbcdburl, "dbname.schemaname.tablename", connproperties);
Comments
Post a Comment