Advertisement
Guest User

Untitled

a guest
Jun 27th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. val coneccion = spark.sqlContext.read.format("jdbc").option("url",
  2. "jdbc:mysql://localhost/spark").option("driver",
  3. "com.mysql.jdbc.Driver").option("dbtable", "usuarios").option("user",
  4. "spark").option("password", "spark").load()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement