You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code in notebook kafka-sensor-data-generator.snb.ipynb:
valquery= 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.