Return-Path: X-Original-To: apmail-apex-dev-archive@minotaur.apache.org Delivered-To: apmail-apex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D12A218393 for ; Tue, 19 Jan 2016 19:31:45 +0000 (UTC) Received: (qmail 69202 invoked by uid 500); 19 Jan 2016 19:31:45 -0000 Delivered-To: apmail-apex-dev-archive@apex.apache.org Received: (qmail 69139 invoked by uid 500); 19 Jan 2016 19:31:45 -0000 Mailing-List: contact dev-help@apex.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.incubator.apache.org Delivered-To: mailing list dev@apex.incubator.apache.org Received: (qmail 69128 invoked by uid 99); 19 Jan 2016 19:31:45 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2016 19:31:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 38DC6C0DE8 for ; Tue, 19 Jan 2016 19:31:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.227 X-Spam-Level: * X-Spam-Status: No, score=1.227 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.554, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 3JJPcbXMgp6i for ; Tue, 19 Jan 2016 19:31:40 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 0B95B2054B for ; Tue, 19 Jan 2016 19:31:40 +0000 (UTC) Received: (qmail 68624 invoked by uid 99); 19 Jan 2016 19:31:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2016 19:31:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D7A1C2C14F2 for ; Tue, 19 Jan 2016 19:31:39 +0000 (UTC) Date: Tue, 19 Jan 2016 19:31:39 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@apex.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (APEXCORE-304) Ability to add jars to classpath in populateDAG 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/APEXCORE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15107261#comment-15107261 ] ASF GitHub Bot commented on APEXCORE-304: ----------------------------------------- Github user vrozov commented on a diff in the pull request: https://github.com/apache/incubator-apex-core/pull/208#discussion_r50161978 --- Diff: engine/src/main/java/com/datatorrent/stram/StramLocalCluster.java --- @@ -308,6 +313,24 @@ public StramLocalCluster(LogicalPlan dag) throws IOException, ClassNotFoundExcep this.dnmgr = new StreamingContainerManager(dag); this.umbilical = new UmbilicalProtocolLocalImpl(); + Method addURL; + URLClassLoader loader; + try { + loader = (URLClassLoader)ClassLoader.getSystemClassLoader(); --- End diff -- What is the purpose of casting loader to URLCLassLoader? Can't this be coded as ``` ClassLoader loader; try { loader = ClassLoader.getSystemClassLoader(); addURL = loader.getClass().getDeclaredMethod("addURL", URL.class); ``` > Ability to add jars to classpath in populateDAG > ----------------------------------------------- > > Key: APEXCORE-304 > URL: https://issues.apache.org/jira/browse/APEXCORE-304 > Project: Apache Apex Core > Issue Type: Improvement > Reporter: Chinmay Kolhatkar > Assignee: Chinmay Kolhatkar > > This will have following functionality: > 1) In populateDAG one would be allowed to add given local jar path to classpath of the application. > 2) Optionally delete the given jar file after copying to HDFS is done. -- This message was sent by Atlassian JIRA (v6.3.4#6332)