Skip to content

Instantly share code, notes, and snippets.

@chbatey
Created February 18, 2015 14:48
Show Gist options
  • Save chbatey/b224ef4d1bb00a03d1d6 to your computer and use it in GitHub Desktop.
Save chbatey/b224ef4d1bb00a03d1d6 to your computer and use it in GitHub Desktop.
val conf = new SparkConf().set("spark.cassandra.connection.host", "127.0.0.1")
val sc = new SparkContext("local[2]", "MigrateMySQLToCassandra", conf)
val mysqlJdbcString: String = s"jdbc:mysql://192.168.10.11/customer_events?user=root&password=password"
Class.forName("com.mysql.jdbc.Driver").newInstance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment