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 315B1200CE5 for ; Sat, 8 Jul 2017 06:10:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3020F16A8D6; Sat, 8 Jul 2017 04:10:06 +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 5A9A716A8D2 for ; Sat, 8 Jul 2017 06:10:05 +0200 (CEST) Received: (qmail 88395 invoked by uid 500); 8 Jul 2017 04:10:04 -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 88310 invoked by uid 99); 8 Jul 2017 04:10:04 -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; Sat, 08 Jul 2017 04:10:04 +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 0B726C02D9 for ; Sat, 8 Jul 2017 04:10:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id uKzbzC9mQpci for ; Sat, 8 Jul 2017 04:10:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 26A435F5B8 for ; Sat, 8 Jul 2017 04:10: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 EF6F9E0D60 for ; Sat, 8 Jul 2017 04:10:00 +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 29D2524695 for ; Sat, 8 Jul 2017 04:10:00 +0000 (UTC) Date: Sat, 8 Jul 2017 04:10:00 +0000 (UTC) From: "Tzu-Li (Gordon) Tai (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (FLINK-7133) Fix Elasticsearch version interference MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 08 Jul 2017 04:10:06 -0000 [ https://issues.apache.org/jira/browse/FLINK-7133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16078938#comment-16078938 ] Tzu-Li (Gordon) Tai edited comment on FLINK-7133 at 7/8/17 4:09 AM: -------------------------------------------------------------------- [~Adebski] [~aljoscha] thanks for the explanation :) I assumed that the problem was local only because the last time I tried it with cluster execution for the release testing, it worked without issues. I also tried it in local mode just now, however cannot reproduce. I wonder if it may be something specific to the IDE setup, or only surfaces when some other dependency is included. I don't really like the idea of removing the `elasticsearch-base` module and duplicating the base classes. Apart from the duplication which isn't nice, if we're solving it this way, then the problem would still exist for the `elasticsearch1` module. As for another possible resolution, I was checking out this thread: https://github.com/elastic/elasticsearch/issues/7959, and wondering if we can simply exclude the asm dependency from ES. From the comments in that thread, it seems like if we're just using ES client, it is safe to exclude the asm dependencies from `elasticsearch-base`. i.e., {code} org.elasticsearch elasticsearch asm org.ow2.asm {code} [~Adebski] have you tried that? Btw, thanks a lot for digging into this :) was (Author: tzulitai): [~Adebski] [~aljoscha] thanks for the explanation :) I assumed that the problem was local only because the last time I tried it with cluster execution for the release testing, it worked without issues. I also tried it in local mode just now, however cannot reproduce. I wonder if it may be something specific to the IDE setup, or only surfaces when some other dependency is included. As for the possible resolution, I was checking out this thread: https://github.com/elastic/elasticsearch/issues/7959, and wondering if we can simply exclude the asm dependency from ES. From the comments in that thread, it seems like if we're just using ES client, it is safe to exclude the asm dependencies from `elasticsearch-base`. i.e., {code} org.elasticsearch elasticsearch asm org.ow2.asm {code} [~Adebski] have you tried that? Btw, thanks a lot for digging into this :) > Fix Elasticsearch version interference > -------------------------------------- > > Key: FLINK-7133 > URL: https://issues.apache.org/jira/browse/FLINK-7133 > Project: Flink > Issue Type: Bug > Components: Streaming Connectors > Affects Versions: 1.3.0, 1.3.1 > Reporter: Aljoscha Krettek > Priority: Blocker > Fix For: 1.3.2 > > > At least two users have encountered problems with shading in the Elasticsearch connector: > - https://lists.apache.org/thread.html/b5bc1f690dc894ea9a8b69e82c89eb89ba6dfc2fec2588d2ccacee2c@%3Cuser.flink.apache.org%3E > - https://lists.apache.org/thread.html/2356670d168f61c20e34611e3c4aeb9c9b3f959f23a9833f631da1ba@%3Cuser.flink.apache.org%3E > The problem seems to be (quote from the second mail): > {code} > I've found out the source of the problem when I build flink locally. > elastic-search base depends on (by default) ES version 1.7.1 that depends on > asm 4.1 and that version is shaded to elasticsearch-base-jar. I tried to set > elasticsearch.version property in Maven to 5.1.2 (the same as elasticsearch5 > connector) but then elasticsearch-base does not compile: > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile > (default-testCompile) on project flink-connector-elasticsearch-base_2.11: > Compilation failure > [ERROR] > /home/adebski/Downloads/flink-release-1.3.1/flink-connectors/flink-connector-elasticsearch-base/src/test/java/org/apache/flink/streaming/connectors/elasticsearch/ElasticsearchSinkBaseTest.java:[491,92] > no suitable constructor found for > BulkItemResponse(int,java.lang.String,org.elasticsearch.action.ActionResponse) > [ERROR] constructor > org.elasticsearch.action.bulk.BulkItemResponse.BulkItemResponse(int,java.lang.String,org.elasticsearch.action.DocWriteResponse) > is not applicable > [ERROR] (argument mismatch; org.elasticsearch.action.ActionResponse cannot > be converted to org.elasticsearch.action.DocWriteResponse) > [ERROR] constructor > org.elasticsearch.action.bulk.BulkItemResponse.BulkItemResponse(int,java.lang.String,org.elasticsearch.action.bulk.BulkItemResponse.Failure) > is not applicable > [ERROR] (argument mismatch; org.elasticsearch.action.ActionResponse cannot > be converted to org.elasticsearch.action.bulk.BulkItemResponse.Failure) > {code} > To me, it seems like we have to get rid of the "base" package and have two completely separate packages. -- This message was sent by Atlassian JIRA (v6.4.14#64029)