Hi,
I’m trying to insert a dataset into a memsql table using java spark. I did following list of things but didn’t work out.
a) Added memsql dependency in POM.xml
com.memsql
memsql-connector_2.11
2.0.2
b) Provided memsql conf details in SparkConf.
SparkConf sparkConf = new SparkConf();
sparkConf.setMaster(“local[2]”);
sparkConf.setAppName(“JUstForCheck”);
sparkConf.set(“spark.memsql.defaultDatabase”, “*");
sparkConf.set(“spark.memsql.host”, "");
sparkConf.set(“spark.memsql.port”, “3306”);
sparkConf.set(“spark.memsql.user”, “root”);
sparkConf.set(“spark.memsql.password”, "”);
c) wordsDataFrame.write().mode(SaveMode.Append).insertInto(“test”);
Note: wordsDataFrame is a DataSet.
Can anyone helps me out to insert data into memsql tables
Thanks
Arun