Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

[APEXMALHAR-2086] Kafka output operator: 0.9.0 #298

Merged
merged 1 commit into from Jul 14, 2016
Merged

[APEXMALHAR-2086] Kafka output operator: 0.9.0 #298

merged 1 commit into from Jul 14, 2016

Conversation

sandeshh
Copy link
Contributor

Kafka output exactly once operator and the regular output operator.

@sandeshh
Copy link
Contributor Author

@siyuanh

Please comment on the overall approach

import org.apache.kafka.clients.producer.ProducerRecord;
import com.datatorrent.api.DefaultInputPort;

public class KafkaSinglePortOutputOperator<K,V> extends AbstractKafkaOutputOperator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this evolving?

@sandeshh sandeshh changed the title *For review only* [APEXMALHAR-2086] Kafka output: 0.9.1 first cut [APEXMALHAR-2086] Kafka output: 0.9.1 first cut Jun 17, 2016
} catch (IOException e) {
throw new RuntimeException(e);
} catch (InterruptedException e) {
e.printStackTrace();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't swallow exception here

@tweise
Copy link
Contributor

tweise commented Jun 29, 2016

Why do we need this operator, how is it different from the existing operator?

@siyuanh
Copy link
Contributor

siyuanh commented Jun 29, 2016

@tweise There is no 0.9 output operator.

@sandeshh sandeshh changed the title [APEXMALHAR-2086] Kafka output: 0.9.1 first cut [APEXMALHAR-2086] Kafka output: 0.9.0.1 first cut Jul 1, 2016
@sandeshh sandeshh changed the title [APEXMALHAR-2086] Kafka output: 0.9.0.1 first cut [APEXMALHAR-2086] Kafka output: 0.9.0 Jul 1, 2016
@sandeshh
Copy link
Contributor Author

sandeshh commented Jul 1, 2016

@siyuanh I have addressed the review comments that we discussed.

@sandeshh sandeshh changed the title [APEXMALHAR-2086] Kafka output: 0.9.0 [APEXMALHAR-2086] Kafka output operator: 0.9.0 Jul 1, 2016
@tweise
Copy link
Contributor

tweise commented Jul 1, 2016

@siyuanh that does not answer my question. If added a comment to the JIRA.

/**
* Kafka output operator with exactly once processing semantics under certain conditions.,
*
* This operator uses *Key* to distinguish the messages written by particular instance of the Output operator.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs more explanation. What makes it exactly once, are there other restrictions or assumptions?

@sandeshh sandeshh closed this Jul 5, 2016
@sandeshh sandeshh reopened this Jul 5, 2016
@sandeshh sandeshh closed this Jul 7, 2016
@sandeshh sandeshh reopened this Jul 7, 2016
@siyuanh
Copy link
Contributor

siyuanh commented Jul 7, 2016

@sandeshh Test is failing, can you change the log level and run it again so it won't fail because of too much logs

@sandeshh sandeshh closed this Jul 7, 2016
@sandeshh sandeshh reopened this Jul 7, 2016
@sandeshh sandeshh closed this Jul 8, 2016
@sandeshh sandeshh reopened this Jul 8, 2016
@sandeshh
Copy link
Contributor Author

sandeshh commented Jul 8, 2016

@siyuanh Travis build is failing as it reached log limit of 4mb.

Here is the log file,
https://s3.amazonaws.com/archive.travis-ci.org/jobs/143218837/log.txt

What do you recommend? Disable the Kafka unit tests?

@siyuanh
Copy link
Contributor

siyuanh commented Jul 8, 2016

@sandeshh Looks like the travis doesn't pick up the log4j settings. Can you try to run the travis build on your local machine?

@@ -47,3 +47,4 @@ log4j.logger.org.apache.apex=INFO
log4j.logger.org.apacke.kafka=WARN
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo here, this is the reason why log4j doesn't pick up lines after this

@sandeshh sandeshh closed this Jul 8, 2016
@sandeshh sandeshh reopened this Jul 8, 2016
@sandeshh sandeshh closed this Jul 12, 2016
@sandeshh sandeshh reopened this Jul 12, 2016
1. Abstract Base class
2. Kafka Output operator
3. Exactly Once output operator
     Key in the Kafka message is used by the operator to track the tuples written by it.
@asfgit asfgit merged commit 0444ced into apache:master Jul 14, 2016
@sandeshh sandeshh deleted the APEXMALHAR-2086 branch November 10, 2016 17:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
6 participants