Created
February 18, 2015 14:48
-
-
Save chbatey/b224ef4d1bb00a03d1d6 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 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