Skip to content

Instantly share code, notes, and snippets.

crdiaz324 / dse-cluster-migration.scala
Last active November 9, 2018 00:04
package phact
import com.datastax.spark.connector._
import com.datastax.spark.connector.cql.{CassandraConnector, TableDef}
import org.apache.spark.sql.{SaveMode, SparkSession}
import org.apache.spark.sql.cassandra._
// For DSE it is not necessary to set connection parameters for spark.master (since it will be done
// automatically)
object MigrateTable extends App {