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
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 { |