JSONKeyValueDeserializationSchema cannot be converted to ObjectNode>

2022-02-08 Thread HG
Hi all, When I build this code: KafkaSource source = KafkaSource.builder() .setProperties(kafkaProps) .setProperty("ssl.truststore.type",trustStoreType) .setProperty("ssl.truststore.password",trustStorePassword) .setProperty("ssl.truststore.location",trustStoreLoca

Re: JSONKeyValueDeserializationSchema cannot be converted to ObjectNode>

2022-02-08 Thread Roman Khachatryan
Hi, setDeserializer() expects KafkaRecordDeserializationSchema; JSONKeyValueDeserializationSchema you provided is not compatible with it. You can convert it using [1] [1] https://nightlies.apache.org/flink/flink-docs-master/api/java/org/apache/flink/connector/kafka/source/reader/deserializer/Kafk

Re: JSONKeyValueDeserializationSchema cannot be converted to ObjectNode>

2022-02-09 Thread HG
Hi Convert ?? How does that work? Can you spare a couple of lines for that? Regards Hans Op di 8 feb. 2022 om 21:56 schreef Roman Khachatryan : > Hi, > > setDeserializer() expects KafkaRecordDeserializationSchema; > JSONKeyValueDeserializationSchema you provided is not compatible with > it. > Yo

Re: JSONKeyValueDeserializationSchema cannot be converted to ObjectNode>

2022-02-09 Thread HG
Sorry to have bothered everyone. This is the obvious solution: .setDeserializer(KafkaRecordDeserializationSchema.of(new JSONKeyValueDeserializationSchema(false))) Regards Hans-Peter Op di 8 feb. 2022 om 21:56 schreef Roman Khachatryan : > Hi, > > setDeserializer() expects KafkaRecordDeserial

Re: JSONKeyValueDeserializationSchema cannot be converted to ObjectNode>

2022-02-10 Thread HG
The complete solution for the record ( that others can benefit from it). KafkaSource source = KafkaSource.builder() .setProperties(kafkaProps) .setProperty("ssl.truststore.type",trustStoreType) .setProperty("ssl.truststore.password",trustStorePassword) .setProperty(

Re: JSONKeyValueDeserializationSchema cannot be converted to ObjectNode>

2022-02-10 Thread Martijn Visser
Thanks for sharing the full solution, much appreciated! On Thu, 10 Feb 2022 at 09:07, HG wrote: > The complete solution for the record ( that others can benefit from it). > > KafkaSource source = KafkaSource.builder() > .setProperties(kafkaProps) > .setProperty("ssl.truststore.ty