Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. df.selectExpr("CAST(key AS STRING)", "CAST(value AS STRING)")
  2.  
  3. .write
  4. .format("kafka")
  5. .option("kafka.bootstrap.servers",
  6. "host1:port1,host2:port2")
  7. .option("topic", "topic1")
  8. .save()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement