Created
August 6, 2020 22:54
-
-
Save snehamehrin/2ee87c13d6be5d7d65fc6c8016b58fae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df_duplicates.write.format("com.databricks.spark.redshift")\ | |
.option("url", "jdbc:redshift://redshift-cluster-1.c9lgtyzxfycf.us-east-1.redshift.amazonaws.com:5439/dev?user=awsuser&password=")\ | |
.option("dbtable", "stackoverflow")\ | |
.option("forward_spark_s3_credentials","true")\ | |
.option("tempdir", "s3n://stack-overflow-bucket")\ | |
.mode("append")\ | |
.save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment