You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "hansva (via GitHub)" <gi...@apache.org> on 2023/03/20 14:37:36 UTC
[GitHub] [hop] hansva opened a new issue, #2741: [Feature Request]: Allow reading of non-string messages with a Kafka Consumer
hansva opened a new issue, #2741:
URL: https://github.com/apache/hop/issues/2741
### What would you like to happen?
Migration: https://issues.apache.org/jira/browse/HOP-3687
For both the regular Kafka Consumer and the Beam Kafka Consumer transforms it would be great to be able to read non-String messages, for example in Avro format.
For the Beam Kafka Consumer I think it would be cool if you could specify the output format as "Avro Record" (in our example) or Serializable, Binary, with String as a default.
This would allow us to set Kafka consumer option value.deserializer to KafkaAvroDeserializer and get an actual Avro Record as a message.
### Issue Priority
Priority: 3
### Issue Component
Component: Transforms
--
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.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature Request]: Allow reading of non-string messages with a Kafka Consumer (hop)
Posted by "vbhanuchander-lang (via GitHub)" <gi...@apache.org>.
vbhanuchander-lang commented on issue #2741:
URL: https://github.com/apache/hop/issues/2741#issuecomment-5159396642
I was looking at picking this up, but I think it may already be implemented and the issue can probably be closed.
`KafkaConsumerField.Type` currently declares `String`, `Integer`, `Number`, `Binary` and `Avro`, each carrying its serializer and deserializer:
```java
Binary("Binary", IValueMeta.TYPE_BINARY,
ByteArraySerializer.class.getName(), ByteArrayDeserializer.class.getName()),
Avro("Avro", IValueMeta.TYPE_AVRO,
"io.confluent.kafka.serializers.KafkaAvroSerializer",
"io.confluent.kafka.serializers.KafkaAvroDeserializer");
```
`KafkaFactory.consumer(...)` applies the selected type to `ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG` and `KEY_DESERIALIZER_CLASS_CONFIG`, the consumer dialog offers every value of that enum for the output fields, and `io.confluent:kafka-avro-serializer` plus `kafka-schema-registry-client` are dependencies of `plugins/transforms/kafka`. The schema registry URL can be supplied through the existing advanced options table.
Going by `git log`, this landed in `e9921c8aba` (2022-02-08) under *"HOP-3739 : Add support for Avro in Kafka transforms"*. This issue is HOP-3687, which was migrated to GitHub in March 2023 — so it looks like the sibling ticket implemented it and the migrated copy was never closed.
If someone can confirm, this could be closed as already done. If there is a specific part still missing — Beam Kafka Consumer rather than the regular transform, or a "Serializable" output option — I'm happy to pick that up instead; I've been working in these transforms recently (#7747).
--
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.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature Request]: Allow reading of non-string messages with a Kafka Consumer (hop)
Posted by "Adalennis (via GitHub) via issues" <is...@hop.apache.org>.
Adalennis commented on issue #2741:
URL: https://github.com/apache/hop/issues/2741#issuecomment-6943588971
@hansva this can be closed: the Kafka Consumer has Binary and Avro message types, and the Beam Kafka Consumer reads "Avro Record" through the Schema Registry.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature Request]: Allow reading of non-string messages with a Kafka Consumer (hop)
Posted by "hansva (via GitHub) via issues" <is...@hop.apache.org>.
hansva closed issue #2741: [Feature Request]: Allow reading of non-string messages with a Kafka Consumer
URL: https://github.com/apache/hop/issues/2741
--
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.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org