Open
Description
Hello!
The code in notebook kafka-sensor-data-generator.snb.ipynb:
val query = sensorValues.writeStream.format("kafka")
.queryName("kafkaWriter")
.outputMode("append")
.option("kafka.bootstrap.servers", kafkaBootstrapServer) // comma-separated list of host:port
.option("topic", targetTopic)
.option("checkpointLocation", workDir+"/generator-checkpoint")
.option("failOnDataLoss", "false") // use this option when testing
.start()
doesn't work because sensorValues is of type Dataset[SensorData], but there should be value attribute of type String concatenating all the attributes from Dataset[SensorData] row.
Metadata
Metadata
Assignees
Labels
No labels