spark kafka Topic not present in metadata after 60000 ms
structstured streaming 结合kafka问题出在kafka加了kerberos认证在将数据写入kafka时需要加.option("kafka.security.protocol", "SASL_PLAINTEXT")
·
structstured streaming 结合kafka
问题出在kafka加了kerberos认证在将数据写入kafka时需要加.option("kafka.security.protocol", "SASL_PLAINTEXT")
spark.readStream.format("kafka")
.option("kafka.bootstrap.servers", "")
.option("subscribe", "")
.option("startingOffsets", "latest")
.option("failOnDataLoss",false)
.option("kafka.security.protocol", "SASL_PLAINTEXT")
.load()
更多推荐
所有评论(0)