With Spark Shell: While using jars memsql-spark-connector_2.11-3.0.5-spark-2.3.4.jar, mariadb-java-client-2.7.2.jar and spray-json_2.11-1.3.6.jar.
I am able to do basic read.
But same command, via a maven spark-java project gives the below error on read.
java.lang.ClassNotFoundException: Failed to find data source: memsql. Please find packages at http://spark.apache.org/third-party-projects.html
Read Command:
spark.read.format("memsql")
.option("ddlEndpoint", "<host:port>").option("user", "<user>")
.option("password", "<password>").option("database", "<DB>")
.load("<table>")
Maven dependencies:
<dependency>
<groupId>com.memsql</groupId>
<artifactId>memsql-spark-connector_2.11</artifactId>
<version>3.0.5-spark-2.3.4</version>
</dependency>
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>2.7.2</version>
</dependency>
<dependency>
<groupId>io.spray</groupId>
<artifactId>spray-json_2.11</artifactId>
<version>1.3.5</version>
</dependency>