below code i tried, connection itself it was not established, any sample examples in java using spark structure streaming any help will be appreciate
Thanks
SparkSession spark = SparkSession
.builder()
.appName("couch")
.master("local[*]")
.config("spark.couchbase.nodes", "127.0.0.1")
.config("spark.couchbase.bucket.mybucket", "123")
.config("com.couchbase.username", "Administrator")
.config("com.couchbase.password", "password")
.getOrCreate()
Dataset<row> df=....//dataset reading data from kafka
StreamingQuery query = df.writeStream
.outputMode("complete")
.option("checkpointLocation", "mycheckpointlocation")
.option("idField", "value")
.format("com.couchbase.spark.sql")
.start();
query.awaitTermination();