You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/07/12 19:28:21 UTC

[jira] [Commented] (FLINK-4035) Bump Kafka producer in Kafka sink to Kafka 0.10.0.0

    [ https://issues.apache.org/jira/browse/FLINK-4035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15373533#comment-15373533 ] 

ASF GitHub Bot commented on FLINK-4035:
---------------------------------------

GitHub user radekg opened a pull request:

    https://github.com/apache/flink/pull/2231

    [FLINK-4035] Bump Kafka producer in Kafka sink to Kafka 0.10.0.0

    Hi everyone,
    
    At The Weather Company we bumped into a problem while trying to use Flink with Kafka 0.10.x. This PR introduces the support for `FlinkKafkaConsumer010` and `FlinkKafkaProducer010`. Unit test coverage is provided and `mvn clean verify` passes.
    
    The output is below:
    
    ```
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] force-shading ...................................... SUCCESS [  1.311 s]
    [INFO] flink .............................................. SUCCESS [  2.939 s]
    [INFO] flink-annotations .................................. SUCCESS [  1.476 s]
    [INFO] flink-shaded-hadoop ................................ SUCCESS [  0.152 s]
    [INFO] flink-shaded-hadoop2 ............................... SUCCESS [  7.065 s]
    [INFO] flink-shaded-include-yarn-tests .................... SUCCESS [  8.543 s]
    [INFO] flink-shaded-curator ............................... SUCCESS [  0.112 s]
    [INFO] flink-shaded-curator-recipes ....................... SUCCESS [  1.080 s]
    [INFO] flink-shaded-curator-test .......................... SUCCESS [  0.210 s]
    [INFO] flink-test-utils-parent ............................ SUCCESS [  0.126 s]
    [INFO] flink-test-utils-junit ............................. SUCCESS [  2.019 s]
    [INFO] flink-core ......................................... SUCCESS [ 34.501 s]
    [INFO] flink-java ......................................... SUCCESS [ 26.266 s]
    [INFO] flink-runtime ...................................... SUCCESS [04:57 min]
    [INFO] flink-optimizer .................................... SUCCESS [  7.914 s]
    [INFO] flink-clients ...................................... SUCCESS [  6.537 s]
    [INFO] flink-streaming-java ............................... SUCCESS [ 37.732 s]
    [INFO] flink-test-utils ................................... SUCCESS [  6.166 s]
    [INFO] flink-scala ........................................ SUCCESS [ 24.626 s]
    [INFO] flink-runtime-web .................................. SUCCESS [ 12.831 s]
    [INFO] flink-examples ..................................... SUCCESS [  1.123 s]
    [INFO] flink-examples-batch ............................... SUCCESS [ 11.919 s]
    [INFO] flink-contrib ...................................... SUCCESS [  0.096 s]
    [INFO] flink-statebackend-rocksdb ......................... SUCCESS [  7.770 s]
    [INFO] flink-tests ........................................ SUCCESS [06:22 min]
    [INFO] flink-streaming-scala .............................. SUCCESS [ 26.831 s]
    [INFO] flink-streaming-connectors ......................... SUCCESS [  0.100 s]
    [INFO] flink-connector-flume .............................. SUCCESS [  2.425 s]
    [INFO] flink-libraries .................................... SUCCESS [  0.084 s]
    [INFO] flink-table ........................................ SUCCESS [02:02 min]
    [INFO] flink-connector-kafka-base ......................... SUCCESS [  4.604 s]
    [INFO] flink-connector-kafka-0.8 .......................... SUCCESS [02:01 min]
    [INFO] flink-connector-kafka-0.9 .......................... SUCCESS [02:38 min]
    [INFO] flink-connector-kafka-0.10 ......................... SUCCESS [02:04 min]
    [INFO] flink-connector-elasticsearch ...................... SUCCESS [ 19.310 s]
    [INFO] flink-connector-elasticsearch2 ..................... SUCCESS [ 17.086 s]
    [INFO] flink-connector-rabbitmq ........................... SUCCESS [  2.885 s]
    [INFO] flink-connector-twitter ............................ SUCCESS [  2.649 s]
    [INFO] flink-connector-nifi ............................... SUCCESS [  1.339 s]
    [INFO] flink-connector-cassandra .......................... SUCCESS [01:21 min]
    [INFO] flink-connector-redis .............................. SUCCESS [  5.738 s]
    [INFO] flink-connector-filesystem ......................... SUCCESS [ 24.871 s]
    [INFO] flink-batch-connectors ............................. SUCCESS [  0.103 s]
    [INFO] flink-avro ......................................... SUCCESS [  9.788 s]
    [INFO] flink-jdbc ......................................... SUCCESS [  4.839 s]
    [INFO] flink-hadoop-compatibility ......................... SUCCESS [ 10.026 s]
    [INFO] flink-hbase ........................................ SUCCESS [  2.938 s]
    [INFO] flink-hcatalog ..................................... SUCCESS [  5.383 s]
    [INFO] flink-examples-streaming ........................... SUCCESS [ 24.339 s]
    [INFO] flink-gelly ........................................ SUCCESS [ 40.416 s]
    [INFO] flink-gelly-scala .................................. SUCCESS [ 29.050 s]
    [INFO] flink-gelly-examples ............................... SUCCESS [ 21.418 s]
    [INFO] flink-python ....................................... SUCCESS [ 58.016 s]
    [INFO] flink-ml ........................................... SUCCESS [ 57.270 s]
    [INFO] flink-cep .......................................... SUCCESS [  6.984 s]
    [INFO] flink-cep-scala .................................... SUCCESS [  8.521 s]
    [INFO] flink-scala-shell .................................. SUCCESS [03:28 min]
    [INFO] flink-quickstart ................................... SUCCESS [  1.248 s]
    [INFO] flink-quickstart-java .............................. SUCCESS [  0.610 s]
    [INFO] flink-quickstart-scala ............................. SUCCESS [  0.237 s]
    [INFO] flink-storm ........................................ SUCCESS [ 14.975 s]
    [INFO] flink-storm-examples ............................... SUCCESS [ 37.513 s]
    [INFO] flink-streaming-contrib ............................ SUCCESS [  8.452 s]
    [INFO] flink-tweet-inputformat ............................ SUCCESS [  3.075 s]
    [INFO] flink-operator-stats ............................... SUCCESS [  6.521 s]
    [INFO] flink-connector-wikiedits .......................... SUCCESS [ 18.022 s]
    [INFO] flink-yarn ......................................... SUCCESS [  7.539 s]
    [INFO] flink-dist ......................................... SUCCESS [ 11.453 s]
    [INFO] flink-metrics ...................................... SUCCESS [  0.101 s]
    [INFO] flink-metrics-dropwizard ........................... SUCCESS [  2.699 s]
    [INFO] flink-metrics-ganglia .............................. SUCCESS [  1.320 s]
    [INFO] flink-metrics-graphite ............................. SUCCESS [  1.188 s]
    [INFO] flink-metrics-statsd ............................... SUCCESS [  2.271 s]
    [INFO] flink-fs-tests ..................................... SUCCESS [ 27.916 s]
    [INFO] flink-java8 ........................................ SUCCESS [ 12.209 s]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 37:24 min
    [INFO] Finished at: 2016-07-12T15:18:39-04:00
    [INFO] Final Memory: 234M/1833M
    [INFO] ------------------------------------------------------------------------
    ```
    
    The only thing not provided right in this moment in time, is the documentation updates. Not sure how to take on that one, some guidance would be appreciated.
    
    What would be the best way to proceed with the contribution?

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/TheWeatherCompany/flink kafka-0.10

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/2231.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 #2231
    
----

----


> Bump Kafka producer in Kafka sink to Kafka 0.10.0.0
> ---------------------------------------------------
>
>                 Key: FLINK-4035
>                 URL: https://issues.apache.org/jira/browse/FLINK-4035
>             Project: Flink
>          Issue Type: Bug
>          Components: Kafka Connector
>    Affects Versions: 1.0.3
>            Reporter: Elias Levy
>            Priority: Minor
>
> Kafka 0.10.0.0 introduced protocol changes related to the producer.  Published messages now include timestamps and compressed messages now include relative offsets.  As it is now, brokers must decompress publisher compressed messages, assign offset to them, and recompress them, which is wasteful and makes it less likely that compression will be used at all.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)