Does Elastic Search Spark 6.1.2 connector has Spark streaming sink?
I am using compile group: 'org.elasticsearch', name: 'elasticsearch-hadoop', version: '6.1.2'
For example I tried the following and both didn't work.
Example #1
df
.writeStream()
.outputMode("update")
.trigger(Trigger.ProcessingTime(1000))
.format("es")
.option("checkpointLocation", "/tmp")
.start("test/hello");
java.lang.ClassNotFoundException: Failed to find data source: es. Please find packages at http://spark.apache.org/third-party-projects.html
Example #2
df
.writeStream()
.outputMode("update")
.trigger(Trigger.ProcessingTime(1000))
.format("org.elasticsearch.spark.sql.streaming.EsSparkSqlStreamingSink")
.option("checkpointLocation", "/tmp")
.start("test/hello");
java.lang.InstantiationException: org.elasticsearch.spark.sql.streaming.EsSparkSqlStreamingSink
Caused by: java.lang.NoSuchMethodException: org.elasticsearch.spark.sql.streaming.EsSparkSqlStreamingSink.<init>()