Return-Path: X-Original-To: apmail-reef-dev-archive@minotaur.apache.org Delivered-To: apmail-reef-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 9033318F33 for ; Fri, 18 Dec 2015 18:14:14 +0000 (UTC) Received: (qmail 16961 invoked by uid 500); 18 Dec 2015 18:14:14 -0000 Delivered-To: apmail-reef-dev-archive@reef.apache.org Received: (qmail 16925 invoked by uid 500); 18 Dec 2015 18:14:14 -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 16904 invoked by uid 99); 18 Dec 2015 18:14:14 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2015 18:14:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B54C41A138D for ; Fri, 18 Dec 2015 18:14:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.02 X-Spam-Level: X-Spam-Status: No, score=-0.02 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=weimo-de.20150623.gappssmtp.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ug4UGiEyQ2Ka for ; Fri, 18 Dec 2015 18:14:11 +0000 (UTC) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 5EEB220507 for ; Fri, 18 Dec 2015 18:14:11 +0000 (UTC) Received: by mail-pa0-f46.google.com with SMTP id ur14so63916611pab.0 for ; Fri, 18 Dec 2015 10:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=weimo-de.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=2pogeMvRPNrDB5aSTDylyPB395/KfUMfQdj2hGveXHM=; b=yEViVi0hVVVSHjtiv1G9onCj+txMjMDZQYUsIQEonl1R8JalP9ZGW7n+PdRsoJtPsl 5lku2/0Mt530Qud4M5Q9uKZA/i1rtEgSXwMcygG3KqMMNHYM4uIofHOfVNCRrMrp3YiA 8TGyjJrhr8GZ96oqkZp76mtCplIOtftnZftTS/kC9hdTOwUD2gFVYbPvXxhzHYRHKmEx PqAANSEBM14MdDZyynL327lmAyzEPlyX2zPrmkSBCUK6JIbRnSY46/uZ1wiyPjtfss+d BMPPNHygogUbDUTmIS2/qOs53Q73qNDmMgkj2hlqxPxzDGBX6gixN/9AKPqRB20q6o+v uJqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=2pogeMvRPNrDB5aSTDylyPB395/KfUMfQdj2hGveXHM=; b=DZgSkjkHomOeXcpkQ3bkbzo1YGuqlJ1iISGgxaOkOcmxOar7vG6ZrkNCYpUJFaLs5F eAJ196qxlWAbpK3a2m6y6Vt2nAdG4ylVLvfkLr/RRcA8X3hG5rxgCGSUTvm1glBgiIiD txXAX0tlZugLw0htrZ8N09x4izlcqNAMonE0IhSuXno4Jg36kPgyBXNVQMu1ImepmBD0 sUYfwsk701gcYwqSQcQeq7BkzV+M7No+o17dpbOdoxNoH7qVAykcu5bnefn7NcguCFX7 bX1gWfUCiaiJXVgxOrrzCPbLP1jJzhdZpdGv/gkg5k05Elro1m9kIzYx1IRsqkj1VnjR BMnA== X-Gm-Message-State: ALoCoQmB2d3dLSKfc/b/rS23jlcjrjdX3RSgH6nePPgMqjfzFnpYUpiUD9Hefvepca2reN7SKSS6czGEgSGx8PZxGK1kY06EKQ== X-Received: by 10.66.180.48 with SMTP id dl16mr7226095pac.39.1450462445032; Fri, 18 Dec 2015 10:14:05 -0800 (PST) Received: from ?IPv6:2001:4898:f0:52:a19b:e6eb:24f6:5d31? ([2001:4898:80e8:4::ed]) by smtp.googlemail.com with ESMTPSA id yl1sm23665777pac.35.2015.12.18.10.14.04 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Dec 2015 10:14:04 -0800 (PST) Subject: Re: question on proper ConfigurationModule for configuring YARN runtime To: dev@reef.apache.org References: <56717EE1.8080800@weimo.de> From: Markus Weimer X-Enigmail-Draft-Status: N1110 Message-ID: <56744CEC.4080404@weimo.de> Date: Fri, 18 Dec 2015 10:14:04 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit On 2015-12-16 20:20, Tobin Baker wrote: > driver.YarnDriverConfiguration is only intended for internal use, > while both YarnClientConfiguration and client.YarnDriverConfiguration > are intended for use by the application Correct. > I'm not entirely clear when an application would e.g. specify > YarnClientConfiguration.YARN_QUEUE_NAME vs. > client.YarnDriverConfiguration.QUEUE. YarnClientConfiguration.YARN_QUEUE_NAME is the default for when an app doesn't specify client.YarnDriverConfiguration.QUEUE. The idea is that a single `REEF` instance can be used to submit many Drivers, not all of which go to the same queue. > Also, I can't see anywhere that client.YarnDriverConfiguration.CONF > is used, so I'm a bit confused. Is the client expected to manually > merge the configuration built from > client.YarnDriverConfiguration.CONF into the Driver configuration > that they pass to REEF.submit() Yes. We needed an escape hatch from our abstractions: When the Client *knows* it submits to YARN, it can use that class to specify additional parameters only understood by YARN. I concede it isn't the most elegant approach to do this. It stems from the early decision that a Driver submission shall be a `Configuration` and nothing else. I now think that has been a mistake and we've designed it differently in C#, where the `DriverSubmission` contains the Driver `Configuration`, but also other parameters (like the submission queue). > If this is the right interpretation, then it seems like I should be > putting the JOB_SUBMISSION_DIRECTORY_PREFIX parameter into > client.YarnDriverConfiguration. Yes, that seems consistent with the rest of the parameters Markus