Last active
August 29, 2015 14:15
-
-
Save chbatey/1286acb7dd2bf70873ec 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", cassandraHost) | |
val sc = new SparkContext(sparkMaster, "CassandraSchemaMigration", conf) | |
val events_by_customer = sc.cassandraTable("keyspace", "customer_events") | |
events_by_customer.saveToCassandra("keyspace", "customer_events_by_staff", | |
SomeColumns("customer_id", "time", "id", "event_type", "staff_name", "staff_title", | |
"store_location", "store_name", "store_type")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment