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 2D75F200D51 for ; Fri, 8 Dec 2017 06:50:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2BC38160C1E; Fri, 8 Dec 2017 05:50:09 +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 723CF160C0C for ; Fri, 8 Dec 2017 06:50:08 +0100 (CET) Received: (qmail 4541 invoked by uid 500); 8 Dec 2017 05:50:07 -0000 Mailing-List: contact dev-help@reef.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@reef.apache.org Delivered-To: mailing list dev@reef.apache.org Received: (qmail 4530 invoked by uid 99); 8 Dec 2017 05:50:07 -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; Fri, 08 Dec 2017 05:50:07 +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 30BFBC8196 for ; Fri, 8 Dec 2017 05:50:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.011 X-Spam-Level: X-Spam-Status: No, score=-100.011 tagged_above=-999 required=6.31 tests=[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 17p6SPfAz-gw for ; Fri, 8 Dec 2017 05:50:06 +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 D6BC45FB37 for ; Fri, 8 Dec 2017 05:50:05 +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 78D01E105A for ; Fri, 8 Dec 2017 05:50:04 +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 4751821E81 for ; Fri, 8 Dec 2017 05:50:01 +0000 (UTC) Date: Fri, 8 Dec 2017 05:50:01 +0000 (UTC) From: "John Yang (JIRA)" To: dev@reef.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (REEF-1959) Fix bug in ClassPathBuilder#addAllToSuffix MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 08 Dec 2017 05:50:09 -0000 [ https://issues.apache.org/jira/browse/REEF-1959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16283091#comment-16283091 ] John Yang commented on REEF-1959: --------------------------------- Resolved by https://github.com/apache/reef/pull/1416 > Fix bug in ClassPathBuilder#addAllToSuffix > ------------------------------------------ > > Key: REEF-1959 > URL: https://issues.apache.org/jira/browse/REEF-1959 > Project: REEF > Issue Type: Bug > Components: REEF Runtime YARN > Reporter: Geon-Woo Kim > Assignee: Geon-Woo Kim > Fix For: 0.17 > > > The method is written as > {code:java} > void addAllToSuffix(final String... entries) { > for (final String classPathEntry : entries) { > /** should be add to suffix **/ > this.addToPrefix(classPathEntry); > } > } > {code} > and I believe it should be > {code:java} > void addAllToSuffix(final String... entries) { > for (final String classPathEntry : entries) { > this.addToSuffix(classPathEntry); > } > } > {code} > The method is used to add some hadoop dependencies to the class path of the driver jvm, like addAllToSuffix(SOME_HADOOP_DEPENDENCIES). So we expect *-classpath* looks like *APPLICATION_JAR:SOME_HADOOP_DEPENDENCIES*, but the bug makes it as *SOME_HADOOP_DEPENDENCIES:APPLICATION_JAR*, which causes the class loader firstly looks up transitive dependencies from the HADOOP_DEPENDENCIES. We cannot use higher versions of guava or netty which are also defined on those HADOOP_DEPENDENCIES, with the bug. I guess that this bug also causes REEF-1897 . -- This message was sent by Atlassian JIRA (v6.4.14#64029)