pratyakshsharma commented on a change in pull request #1562:
URL: https://github.com/apache/incubator-hudi/pull/1562#discussion_r425113606
##########
File path:
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/AvroKafkaSource.java
##########
@@ -45,11 +46,14 @@
private final KafkaOffsetGen offsetGen;
+ private final String useCustomDeserializerProp =
"hoodie.deltastreamer.kafka.custom.avro.deserializer";
+
public AvroKafkaSource(TypedProperties props, JavaSparkContext sparkContext,
SparkSession sparkSession,
SchemaProvider schemaProvider) {
super(props, sparkContext, sparkSession, schemaProvider);
+ boolean useCustomDeserializer =
props.getBoolean(useCustomDeserializerProp, false);
props.put("key.deserializer", StringDeserializer.class);
- props.put("value.deserializer", KafkaAvroDeserializer.class);
+ props.put("value.deserializer", useCustomDeserializer ?
HoodieAvroKafkaDeserializer.class : KafkaAvroDeserializer.class);
Review comment:
Yeah, I mean historically we have used confluent schema-registry
integration with hudi. :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]