You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "Matthew Tieman (JIRA)" <ji...@apache.org> on 2015/03/02 22:52:05 UTC
[jira] [Created] (STORM-697) Support for Emitting Kafka Message
Offset and Partition
Matthew Tieman created STORM-697:
------------------------------------
Summary: Support for Emitting Kafka Message Offset and Partition
Key: STORM-697
URL: https://issues.apache.org/jira/browse/STORM-697
Project: Apache Storm
Issue Type: Improvement
Components: storm-kafka
Reporter: Matthew Tieman
Assignee: Matthew Tieman
It would be nice expose the offset and partition of messages consumed from Kafka to the Scheme generating the Tuples. This is useful for auditing/replaying data from arbitrary points on a Kafka topic. There are a few ways to accomplish this.
One is to define a new extension of Scheme, say MessageAndMetadataScheme, and add another case in KafkaUtils.generateTuples to determine if the config's schema is an instance of MessageAndMetadataScheme.
Another is add a flag to SpoutConfig indicating that the scheme should accept a byte array of MessageAndRealOffset.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)