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 1466A179F7 for ; Mon, 2 Nov 2015 09:40:28 +0000 (UTC) Received: (qmail 35315 invoked by uid 500); 2 Nov 2015 09:40:28 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 35166 invoked by uid 500); 2 Nov 2015 09:40:27 -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 35007 invoked by uid 99); 2 Nov 2015 09:40:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2015 09:40:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BC1292C1F5F for ; Mon, 2 Nov 2015 09:40:27 +0000 (UTC) Date: Mon, 2 Nov 2015 09:40:27 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-2797) CLI: Missing option to submit jobs in detached mode 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-2797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14984964#comment-14984964 ] ASF GitHub Bot commented on FLINK-2797: --------------------------------------- Github user sachingoel0101 commented on a diff in the pull request: https://github.com/apache/flink/pull/1214#discussion_r43610296 --- Diff: flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamContextEnvironment.java --- @@ -36,28 +31,16 @@ private static final Logger LOG = LoggerFactory.getLogger(StreamContextEnvironment.class); - private final List jars; - - private final List classpaths; - - private final Client client; + private final ContextEnvironment ctx; private final ClassLoader userCodeClassLoader; - - private final boolean wait; - protected StreamContextEnvironment(Client client, List jars, List classpaths, int parallelism, - boolean wait) { - this.client = client; - this.jars = jars; - this.classpaths = classpaths; - this.wait = wait; - - this.userCodeClassLoader = JobWithJars.buildUserCodeClassLoader(jars, classpaths, - getClass().getClassLoader()); + protected StreamContextEnvironment(ContextEnvironment ctx) { + this.ctx = ctx; + this.userCodeClassLoader = JobWithJars.buildUserCodeClassLoader(ctx.getJars(), ctx.getClasspaths(), getClass().getClassLoader()); --- End diff -- Okay. I will go through all usages of classloaders and try to delegate them to the `Client`. > CLI: Missing option to submit jobs in detached mode > --------------------------------------------------- > > Key: FLINK-2797 > URL: https://issues.apache.org/jira/browse/FLINK-2797 > Project: Flink > Issue Type: Bug > Components: Command-line client > Affects Versions: 0.9, 0.10 > Reporter: Maximilian Michels > Assignee: Sachin Goel > Fix For: 0.10 > > > Jobs can only be submitted in detached mode using YARN but not on a standalone installation. This has been requested by users who want to submit a job, get the job id, and later query its status. -- This message was sent by Atlassian JIRA (v6.3.4#6332)