Sending a Spark DataFrame via Email
问题 I am working on this project where I need to get the table data in a spark dataframe and send it in a mail. The language to be used is Scala. The dataframe to hold the table data is as follows:- val sqlDfUT = hiveCon.sql("select * from UserTable") I need to send "sqlDfUT" as a message body in a mail. The code for sending the mail is: sendScalaMail("monitor@foo.com","Users Data Sent : \n " + sqlDfUT + ",\nMail sent from host: " + java.net.InetAddress.getLocalHost().getHostName(), "12525","Hive