Re: spark can't connect to kafka via sasl_ssl

2022-07-28 Thread wilson
updated: now I have resolved the connection issue (due to wrong arguments passed to sasl). but I meat another problem: 22/07/28 20:17:48 ERROR MicroBatchExecution: Query [id = 2a3bd87a-3a9f-4e54-a697-3d67cef77230, runId = 11c7ca0d-1bd9-4499-a613-6b6e8e8735ca] terminated with error

spark can't connect to kafka via sasl_ssl

2022-07-27 Thread wilson
Hello, my spark client program is as following: import org.apache.spark.sql.SparkSession object Sparkafka { def main(args:Array[String]):Unit = { val spark = SparkSession.builder.appName("Mykafka").getOrCreate() val df = spark .readStream .format("kafka")