Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. val monthlyAggregation = spark.sql(
  2. """
  3. SELECT count(*) BLA BLA BLA
  4. GROUP BY BLA BLA BLA
  5. """.stripMargin)
  6.  
  7. val query = monthlyAggregation.writeStream
  8. .outputMode("complete")
  9. //.format("console")
  10. .format("jdbc")
  11. .start("jdbc:mysql://localhost:3306/ad_db?user=root&password=pass")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement