Last active
May 1, 2018 06:35
-
-
Save therako/acb6d2a0702b5b7b92f2656108a383ce to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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