使用 Avro 序列化器将 Spark Structured Streaming 数据发送到 Confluent Kafka
importio.confluent.kafka.serializers.{AbstractKafkaAvroSerDeConfig,KafkaAvroSerializer}importorg.apache.avro.Schemaimportorg.apache.avro.generic.GenericRecordimportorg.apache.kafka.clients.producer.{K