You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by DT-Priyanka <gi...@git.apache.org> on 2016/06/20 07:26:49 UTC
[GitHub] apex-malhar pull request #323: APEXMALHAR-2121: Updating KafkaInputOperator ...
GitHub user DT-Priyanka opened a pull request:
https://github.com/apache/apex-malhar/pull/323
APEXMALHAR-2121: Updating KafkaInputOperator to add emitTuple method with access to more kafka parameters
Added emitTuple method with KafkaMessage as parameter. A user can override this emitTuple to get access to more kafka parameters and choose what he wants to emit along with kafka Message.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/DT-Priyanka/incubator-apex-malhar APEXMALHAR-2121-kafka-emit-update
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/apex-malhar/pull/323.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #323
----
commit dc821843a8ff8064ef4bdba39adaa0b1595175ff
Author: Priyanka Gugale <pr...@datatorrent.com>
Date: 2016-06-20T07:25:12Z
APEXMALHAR-2121: Updating KafkaInputOperator to add emitTuple method with access to more kafka parameters
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] apex-malhar pull request #323: APEXMALHAR-2121: Updating KafkaInputOperator ...
Posted by tweise <gi...@git.apache.org>.
Github user tweise commented on a diff in the pull request:
https://github.com/apache/apex-malhar/pull/323#discussion_r67994905
--- Diff: contrib/src/main/java/com/datatorrent/contrib/kafka/AbstractKafkaInputOperator.java ---
@@ -203,6 +204,14 @@ public AbstractKafkaInputOperator()
*/
protected abstract void emitTuple(Message message);
--- End diff --
I don't see a backward compatibility issue, it's a new method. And yes, the same change needs to be made on the 0.9 operator also.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] apex-malhar pull request #323: APEXMALHAR-2121: Updating KafkaInputOperator ...
Posted by siyuanh <gi...@git.apache.org>.
Github user siyuanh commented on a diff in the pull request:
https://github.com/apache/apex-malhar/pull/323#discussion_r67949068
--- Diff: contrib/src/main/java/com/datatorrent/contrib/kafka/AbstractKafkaInputOperator.java ---
@@ -203,6 +204,14 @@ public AbstractKafkaInputOperator()
*/
protected abstract void emitTuple(Message message);
--- End diff --
That's why I'm asking can we do that. It does have compatibility issue but on the other hand if some one wants to emit the tuple along with partition id etc, he/she is forced to implement the emitTuple method as well. Well, we can keep it as it is now. @DT-Priyanka can you file a jira to make this change in 0.9 kafka input operator. We can change the existing interface for that one
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] apex-malhar pull request #323: APEXMALHAR-2121: Updating KafkaInputOperator ...
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/apex-malhar/pull/323
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] apex-malhar pull request #323: APEXMALHAR-2121: Updating KafkaInputOperator ...
Posted by siyuanh <gi...@git.apache.org>.
Github user siyuanh commented on a diff in the pull request:
https://github.com/apache/apex-malhar/pull/323#discussion_r67717267
--- Diff: contrib/src/main/java/com/datatorrent/contrib/kafka/AbstractKafkaInputOperator.java ---
@@ -203,6 +204,14 @@ public AbstractKafkaInputOperator()
*/
protected abstract void emitTuple(Message message);
--- End diff --
It is good to change this method signature, but can we do that?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] apex-malhar pull request #323: APEXMALHAR-2121: Updating KafkaInputOperator ...
Posted by DT-Priyanka <gi...@git.apache.org>.
Github user DT-Priyanka commented on a diff in the pull request:
https://github.com/apache/apex-malhar/pull/323#discussion_r67807361
--- Diff: contrib/src/main/java/com/datatorrent/contrib/kafka/AbstractKafkaInputOperator.java ---
@@ -203,6 +204,14 @@ public AbstractKafkaInputOperator()
*/
protected abstract void emitTuple(Message message);
--- End diff --
I haven't changed the method signature, that would create backward compatibility problems. I have introduced one more new method, and the default implementation of that method will call the existing emitTuple, so no change for existing users at all. The new method will help others to override the behavior if they need to.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---