Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save therako/acb6d2a0702b5b7b92f2656108a383ce to your computer and use it in GitHub Desktop.
Save therako/acb6d2a0702b5b7b92f2656108a383ce to your computer and use it in GitHub Desktop.
val numWriteCores = 10
val input = session.read.parquet(inputPathStr).repartition(numWriteCores)
input.write.format("org.apache.spark.sql.cassandra").options(
Map("keyspace" -> keyspace, "table" -> table)).mode(SaveMode.Append).save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment