Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4DA8D200D16 for ; Mon, 25 Sep 2017 15:12:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4C42E1609BB; Mon, 25 Sep 2017 13:12:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9AA3D1609E9 for ; Mon, 25 Sep 2017 15:12:04 +0200 (CEST) Received: (qmail 94426 invoked by uid 500); 25 Sep 2017 13:12:03 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 94387 invoked by uid 99); 25 Sep 2017 13:12:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Sep 2017 13:12:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 0AD71C0A18 for ; Mon, 25 Sep 2017 13:12:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id CE50QBJllFry for ; Mon, 25 Sep 2017 13:12:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 089EA6125C for ; Mon, 25 Sep 2017 13:12:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 38623E0D6A for ; Mon, 25 Sep 2017 13:12:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A438C24256 for ; Mon, 25 Sep 2017 13:12:00 +0000 (UTC) Date: Mon, 25 Sep 2017 13:12:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-7654) Update RabbitMQ Java client to 4.x MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 25 Sep 2017 13:12:05 -0000 [ https://issues.apache.org/jira/browse/FLINK-7654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16179008#comment-16179008 ] ASF GitHub Bot commented on FLINK-7654: --------------------------------------- Github user yew1eb commented on the issue: https://github.com/apache/flink/pull/4694 Hey @tzulitai, The 4.2.0 version does not bring any other dependencies, we can safely upgrade. ``` [INFO] | +- org.apache.flink:flink-shaded-guava:jar:18.0-1.0:provided [INFO] | +- org.apache.commons:commons-math3:jar:3.5:provided [INFO] | \- org.apache.sling:org.apache.sling.commons.json:jar:2.0.6:provided [INFO] +- com.rabbitmq:amqp-client:jar:4.2.0:compile [INFO] +- org.apache.flink:flink-streaming-java_2.11:test-jar:tests:1.4-SNAPSHOT:test [INFO] +- org.apache.flink:flink-runtime_2.11:test-jar:tests:1.4-SNAPSHOT:test [INFO] | +- org.apache.flink:flink-java:jar:1.4-SNAPSHOT:provided [INFO] | +- org.apache.flink:flink-shaded-hadoop2:jar:1.4-SNAPSHOT:provided ``` ## Check RabbitMQ Sink & Source ### Start a RabbitMQ(3.6.12)server on docker. ``` docker run -d --name rabbitmq --publish 5671:5671 \ --publish 5672:5672 --publish 4369:4369 --publish 25672:25672 --publish 15671:15671 --publish 15672:15672 \ rabbitmq:management ``` ### WriteRabbitMQ job ``` final RMQConnectionConfig connectionConfig = new RMQConnectionConfig.Builder() .setHost("localhost") .setPort(5672) .setVirtualHost("flink") .setPassword("guest") .setUserName("guest") .build(); DataStream tsSource = env.addSource( new SimpleStringGenerator(500)); tsSource.addSink(new RMQSink( connectionConfig, // config for the RabbitMQ connection "flink", // name of the RabbitMQ queue to send messages to new SimpleStringSchema())); ``` ### ReadRabbitMQ job ``` final RMQConnectionConfig connectionConfig = new RMQConnectionConfig.Builder() .setHost("localhost") .setPort(5672) .setVirtualHost("flink") .setPassword("guest") .setUserName("guest") .build(); DataStream tsSource = env.addSource(new RMQSource(connectionConfig, "flink", // name of the RabbitMQ queue to send messages to false, new SimpleStringSchema())); tsSource.addSink(new PrintSinkFunction()); ``` I observed rabbitmq admin UI and flink UI, the message was normally received and sent, no exception log. > Update RabbitMQ Java client to 4.x > ----------------------------------- > > Key: FLINK-7654 > URL: https://issues.apache.org/jira/browse/FLINK-7654 > Project: Flink > Issue Type: Improvement > Components: RabbitMQ Connector, Streaming Connectors > Reporter: Hai Zhou_UTC+8 > Assignee: Hai Zhou_UTC+8 > Fix For: 1.4.0 > > > *RabbitMQ Java Client* > Starting with 4.0, this client releases are independent from RabbitMQ server releases. > These versions can still be used with RabbitMQ server 3.x. -- This message was sent by Atlassian JIRA (v6.4.14#64029)