Return-Path: X-Original-To: apmail-flink-user-archive@minotaur.apache.org Delivered-To: apmail-flink-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C8BF1101E7 for ; Thu, 15 Jan 2015 13:25:58 +0000 (UTC) Received: (qmail 33319 invoked by uid 500); 15 Jan 2015 13:26:00 -0000 Delivered-To: apmail-flink-user-archive@flink.apache.org Received: (qmail 33244 invoked by uid 500); 15 Jan 2015 13:26:00 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 33234 invoked by uid 99); 15 Jan 2015 13:26:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jan 2015 13:26:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of alexander.s.alexandrov@gmail.com designates 209.85.215.46 as permitted sender) Received: from [209.85.215.46] (HELO mail-la0-f46.google.com) (209.85.215.46) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jan 2015 13:25:34 +0000 Received: by mail-la0-f46.google.com with SMTP id ge10so3768278lab.5 for ; Thu, 15 Jan 2015 05:25:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qezcOxYXmAxQy07/0Zt+M2xp7zgEmpclZErSYi+NIdc=; b=En/4J+iZ59FfOfVji6ANAN9rjtxmghQkl1/9RSzQT5CtjG0Wnbmm3WThtYBQcETCDR WIzlLK/wYDxoxHxSLO+VUxnYZ/HjSZfdKplXGLEeU4P5LwOTAFr4P+CrVEOW5CGH+sB2 A4/9M11y41OJpLQL2dLC6JT3xLq2Q8SoDvuoal4Gv/nqEZvSIEWflOgEfNRUjF+0PoSm /9vxnYZAWgZ5vphb9cixNSMWqkHzhCA+tF2KM/qtZYMTLmpBVGCWHDQrRrlOJJvkpdBt YObdTZwpkz7R3O8EPb0MGrverG4PIPytKeYufVJno08NdZnRCM1CM/m5FpZCWaFJciPt U5Ew== MIME-Version: 1.0 X-Received: by 10.152.87.46 with SMTP id u14mr9771494laz.36.1421328333212; Thu, 15 Jan 2015 05:25:33 -0800 (PST) Received: by 10.112.59.39 with HTTP; Thu, 15 Jan 2015 05:25:33 -0800 (PST) In-Reply-To: References: <551C609A-07FB-450F-A7C8-150A08EA3A6E@apache.org> Date: Thu, 15 Jan 2015 14:25:33 +0100 Message-ID: Subject: Re: Customizing the classpath for TM and JM From: Alexander Alexandrov To: user@flink.apache.org Content-Type: multipart/alternative; boundary=001a11c2afd0691109050cb0caaa X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2afd0691109050cb0caaa Content-Type: text/plain; charset=UTF-8 Sorry, I meant between the three. In particular, where will env.java.classpath propagate? 2015-01-15 14:24 GMT+01:00 Alexander Alexandrov < alexander.s.alexandrov@gmail.com>: > No worries, this is the first reply that I get in this thread. > > What would be the difference between the two? I can make a PR if we agree > on that. > > 2015-01-15 11:28 GMT+01:00 Ufuk Celebi : > >> Hey Alexander, >> >> there is only the option "env.java.opts", which can be set in the config. >> I think you cannot use this to have multiple "-classpath" options when >> starting Java? >> >> It makes sense to have the option to add something to the classpath. I >> will check this and fix it. :-) What about "taskmanager.env.java.classpath" >> and "jobmanager.env.java.classpath" as a configuration key? And maybe an >> additional "env.java.classpath"? >> >> PS: sorry for the incomplete mail before :D >> >> On 15 Jan 2015, at 01:00, Alexander Alexandrov < >> alexander.s.alexandrov@gmail.com> wrote: >> >> > Hi there, >> > >> > is there a canonical / suggested way to customize the classpath of the >> Flink JM and TM processes? >> > >> > At the moment I hardcoded my way around this by manually changing the >> following lines like that: >> > >> > # in taskmanager.sh >> > $JAVA_RUN [...] -classpath "/tmp/classes:$FLINK_TM_CLASSPATH" >> > >> > # in jobmanagre.sh >> > $JAVA_RUN [...] -classpath "/tmp/classes:$FLINK_JM_CLASSPATH" >> > >> > Perhaps there is a variable that I can set in conf/flink.yaml that will >> do the same trick. >> >> > --001a11c2afd0691109050cb0caaa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Sorry, I meant between the three. In particular, where wil= l env.java.classpath propagate?

2015-01-15 14:24 GMT+01:00 Alexander Alexandrov <alexander.s.alexandrov@gmail.com>:
No worries, this is the first r= eply that I get in this thread.

What would be the difference b= etween the two? I can make a PR if we agree on that.

2015-01-15 11:28 GMT+01:00 Ufuk Celebi <uce@apache.org>:
Hey Alexander,

there is only the option "env.java.opts", which can be set in the= config. I think you cannot use this to have multiple "-classpath"= ; options when starting Java?

It makes sense to have the option to add something to the classpath. I will= check this and fix it. :-) What about "taskmanager.env.java.classpath= " and "jobmanager.env.java.classpath" as a configuration key= ? And maybe an additional "env.java.classpath"?

PS: sorry for the incomplete mail before :D

On 15 Jan 2015, at 01:00, Alexander Alexandrov <alexander.s.alexandrov@gmail.= com> wrote:

> Hi there,
>
> is there a canonical / suggested way to customize the classpath of the= Flink JM and TM processes?
>
> At the moment I hardcoded my way around this by manually changing the = following lines like that:
>
> # in taskmanager.sh
> $JAVA_RUN [...] -classpath "/tmp/classes:$FLINK_TM_CLASSPATH"= ;
>
> # in jobmanagre.sh
> $JAVA_RUN [...] -classpath "/tmp/classes:$FLINK_JM_CLASSPATH"= ;
>
> Perhaps there is a variable that I can set in conf/flink.yaml that wil= l do the same trick.



--001a11c2afd0691109050cb0caaa--