You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/11/06 11:40:27 UTC

[jira] [Commented] (FLUME-2837) Check Kafka Message Size

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

ASF GitHub Bot commented on FLUME-2837:
---------------------------------------

GitHub user darionyaphet opened a pull request:

    https://github.com/apache/flume/pull/25

    check message size before send to kafka

    Kafka Sink fetch message from channel and use Kafka Producer to send message to Kafka Broker . When Kafka Broker's config `message.max.bytes` and message is too long Flume Kafka Sink will failed to send message. 
    
    I add a check before message send to Kafka Broker . The too long message will be discard and record log with message size.
    You also can config the messageMaxSize in properties file.
    
    I Create a JIRA Ticket:https://issues.apache.org/jira/browse/FLUME-2837
    
    thanks

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

    $ git pull https://github.com/darionyaphet/flume trunk

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

    https://github.com/apache/flume/pull/25.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 #25
    
----
commit a256cd2160e36919867c00cb147113786080f9bc
Author: darionyaphet <da...@gmail.com>
Date:   2015-11-06T10:35:07Z

    check message size before send to kafka

----


> Check Kafka Message Size
> ------------------------
>
>                 Key: FLUME-2837
>                 URL: https://issues.apache.org/jira/browse/FLUME-2837
>             Project: Flume
>          Issue Type: Bug
>          Components: Sinks+Sources
>    Affects Versions: v1.6.0
>         Environment: JDK 1.7.0_75  OS X 10.10.4
>            Reporter: darion yaphets
>         Attachments: FLUME-2837.patch
>
>
> Kafka Sink fetch message from channel and use Kafka Producer to send message to Kafka Broker . When Kafka Broker's config message.max.bytes and message is too long Flume Kafka Sink will failed to send message. I add a check before message send to Kafka Broker . The too long message will be discard and record log with message size. You also can config the messageMaxSize in properties file.



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