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 227DA200C24 for ; Thu, 9 Feb 2017 01:53:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 210F7160B67; Thu, 9 Feb 2017 00:53:47 +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 6ABF2160B49 for ; Thu, 9 Feb 2017 01:53:46 +0100 (CET) Received: (qmail 91462 invoked by uid 500); 9 Feb 2017 00:53:45 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 91453 invoked by uid 99); 9 Feb 2017 00:53:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2017 00:53:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 22F72180684 for ; Thu, 9 Feb 2017 00:53:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.198 X-Spam-Level: X-Spam-Status: No, score=-1.198 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id MGH8sJtiXFXR for ; Thu, 9 Feb 2017 00:53:44 +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 4F6D65F613 for ; Thu, 9 Feb 2017 00:53:43 +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 34A83E031F for ; Thu, 9 Feb 2017 00:53:42 +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 A28A12528B for ; Thu, 9 Feb 2017 00:53:41 +0000 (UTC) Date: Thu, 9 Feb 2017 00:53:41 +0000 (UTC) From: "Michael Luckey (JIRA)" To: commits@beam.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-1411) Unable to downgrade to lower guava version after upgrade to beam-0.5 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 09 Feb 2017 00:53:47 -0000 [ https://issues.apache.org/jira/browse/BEAM-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15858794#comment-15858794 ] Michael Luckey commented on BEAM-1411: -------------------------------------- After short grepping on the repositories pom files, there seem to be a bunch of poms declaring a dependency on guava, but are not using the shade plugin {noformat} ./examples/java8/pom.xml ./sdks/common/fn-api/pom.xml ./sdks/java/extensions/join-library/pom.xml ./sdks/java/harness/pom.xml ./sdks/java/io/elasticsearch/pom.xml ./sdks/java/io/google-cloud-platform/pom.xml ./sdks/java/io/jdbc/pom.xml ./sdks/java/io/jms/pom.xml ./sdks/java/io/kinesis/pom.xml ./sdks/java/io/mongodb/pom.xml ./sdks/java/io/mqtt/pom.xml ./sdks/java/java8tests/pom.xml ./sdks/java/maven-archetypes/examples/pom.xml ./sdks/java/maven-archetypes/examples-java8/pom.xml {noformat} > Unable to downgrade to lower guava version after upgrade to beam-0.5 > -------------------------------------------------------------------- > > Key: BEAM-1411 > URL: https://issues.apache.org/jira/browse/BEAM-1411 > Project: Beam > Issue Type: Bug > Components: sdk-java-core > Affects Versions: 0.5.0 > Reporter: Michael Luckey > Assignee: Davor Bonaci > > While testing upgrading to 0.5 version of beam we ran into NoSuchMethodErrors > {noformat} > java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V > at org.apache.beam.sdk.io.hdfs.HDFSFileSource$SerializableSplit.(HDFSFileSource.java:473) > at org.apache.beam.sdk.io.hdfs.AvroHDFSFileSource$1.apply(AvroHDFSFileSource.java:81) > at org.apache.beam.sdk.io.hdfs.AvroHDFSFileSource$1.apply(AvroHDFSFileSource.java:78) > at com.google.common.collect.Lists$TransformingRandomAccessList.get(Lists.java:451) > at java.util.AbstractList$Itr.next(AbstractList.java:358) > at org.apache.beam.runners.direct.BoundedReadEvaluatorFactory$InputProvider.getInitialInputs(BoundedReadEvaluatorFactory.java:202) > at org.apache.beam.runners.direct.RootProviderRegistry.getInitialInputs(RootProviderRegistry.java:65) > at org.apache.beam.runners.direct.ExecutorServiceParallelExecutor.start(ExecutorServiceParallelExecutor.java:168) > at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:329) > at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:71) > at org.apache.beam.sdk.Pipeline.run(Pipeline.java:178) > at org.apache.beam.sdk.testing.TestPipeline.run(TestPipeline.java:258) > {noformat} > This seems to be caused by the [HDFS IO|https://github.com/apache/beam/tree/master/sdks/java/io/hdfs] components guava dependency not being shaded - in contrast to the core components - and revealed by the [recent update to guava-20.0|https://github.com/apache/beam/commit/0b4b2becb45b9f637ba31f599ebe8be0331bd633] and the therefore incorporated api changes made by [overloading methods|https://github.com/google/guava/commit/892e323fca32945cdfb25395ca6e346dd0fffa5b#diff-fe7358934fa6eba23c2791eb40cec030] > Did not check, whether more components are affected to. -- This message was sent by Atlassian JIRA (v6.3.15#6346)