Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A225187C1 for ; Tue, 6 Oct 2015 16:13:29 +0000 (UTC) Received: (qmail 54230 invoked by uid 500); 6 Oct 2015 16:13:29 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 54081 invoked by uid 500); 6 Oct 2015 16:13:29 -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 53993 invoked by uid 99); 6 Oct 2015 16:13:28 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2015 16:13:28 +0000 Date: Tue, 6 Oct 2015 16:13:28 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-1789) Allow adding of URLs to the usercode class loader MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-1789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14945276#comment-14945276 ] ASF GitHub Bot commented on FLINK-1789: --------------------------------------- Github user twalthr commented on the pull request: https://github.com/apache/flink/pull/593#issuecomment-145915740 Conflicts solved again ;) > Allow adding of URLs to the usercode class loader > ------------------------------------------------- > > Key: FLINK-1789 > URL: https://issues.apache.org/jira/browse/FLINK-1789 > Project: Flink > Issue Type: Improvement > Components: Distributed Runtime > Reporter: Timo Walther > Assignee: Timo Walther > Priority: Minor > > Currently, there is no option to add customs classpath URLs to the FlinkUserCodeClassLoader. JARs always need to be shipped to the cluster even if they are already present on all nodes. > It would be great if RemoteEnvironment also accepts valid classpaths URLs and forwards them to BlobLibraryCacheManager. > The problem with the current approach is that the code loaded by the regular JVM class loader cannot refer to job specific types (which can be accessed only at the UserCodeClassLoader level). Unfortunately, this is the case if we use the classpath entry to generate the dataflows dynamically at runtime. > Currently this functionality needs to be done by "hacks" (hardcode a filesystem path next to the list of jars when initializing the BlobManager entry). It makes sense to open an issue which makes this list parameterizable via an additional ExecutionEnvironment argument (this is basically the only main feature which prohibits the use of Emma project with "off-the-shelf" Flink). > This, of course, would require that the folders are shared (e.g. via NFS) between client, master and workers. I think what made Stephan so excited is the idea of using the same URL mechanism in order to ship the code to all dependent parties (most probably by running a dedicated HTTP or FTP server on the client). > We make the following assumptions for the use case where we need the global class path: > - The URL is either a file path that points to a directory accessible to all nodes (NFS or so) and the client runs in the cluster as well. > - The URL is an HTTP URL or so that points to a file server that serves the classes to work in non-shared directory settings. -- This message was sent by Atlassian JIRA (v6.3.4#6332)