Return-Path: X-Original-To: apmail-incubator-mesos-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-mesos-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 1E589C32D for ; Tue, 4 Jun 2013 02:48:02 +0000 (UTC) Received: (qmail 70994 invoked by uid 500); 4 Jun 2013 02:48:01 -0000 Delivered-To: apmail-incubator-mesos-dev-archive@incubator.apache.org Received: (qmail 70834 invoked by uid 500); 4 Jun 2013 02:48:01 -0000 Mailing-List: contact mesos-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mesos-dev@incubator.apache.org Delivered-To: mailing list mesos-dev@incubator.apache.org Received: (qmail 70814 invoked by uid 99); 4 Jun 2013 02:47:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jun 2013 02:47:59 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of wanggd04@gmail.com designates 209.85.215.54 as permitted sender) Received: from [209.85.215.54] (HELO mail-la0-f54.google.com) (209.85.215.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jun 2013 02:47:55 +0000 Received: by mail-la0-f54.google.com with SMTP id ec20so3024652lab.13 for ; Mon, 03 Jun 2013 19:47:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=tfcdsBSXaFna5Kg0alLjxsUJ+cCIQw3PoYaj++ghBMk=; b=tgs+k+fIl+LyKQVo9XPP3diczUAKFm9UC/yZ33ecKV3nqDiWVp/7jpB6DDMpecoxMD cIlFk3ykjzFxMGagkGcx9G/bL/Fm4Sa4pHm9SrSViS6O4Mpb4PcFiStT6qD8sjyanbqo hFAvymy7rXlDvRAmEXdZyO2yb7V41mQRYPyDf2GcewouqSqK7GPbN0YHtf0RxjwsPuWn QEo1GIjNRoR2uSBuBG6hawT4dvJCppZCFbNM/EDO660zf2+20dTeNj1dmqTjOaeqGWg9 UINOvDuvz006PMFyv6bhQ6C+AMn+ansBwkXSlN7U79X75IN0ITQjC57jovV/7mklTvJ2 2f/Q== X-Received: by 10.112.89.200 with SMTP id bq8mr272731lbb.104.1370314054011; Mon, 03 Jun 2013 19:47:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.17.10 with HTTP; Mon, 3 Jun 2013 19:47:13 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?B?546L5Zu95qCL?= Date: Tue, 4 Jun 2013 10:47:13 +0800 Message-ID: Subject: Re: options '--conf' in Mesos-master and mesos-slave are removed? To: mesos-dev Content-Type: multipart/mixed; boundary=001a11c368de6b92f304de4b1a4b X-Virus-Checked: Checked by ClamAV on apache.org --001a11c368de6b92f304de4b1a4b Content-Type: multipart/alternative; boundary=001a11c368de6b92f004de4b1a49 --001a11c368de6b92f004de4b1a49 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Ben, Yesterday, I changed the mesos-daemon. In my solution, I split the old conf file into 2 conf files, one for masters, the other for slaves. My patch is attached. But I am not sure whether my solution matches your purpose. If your purpose is to discard the conf file, I think the second way you mentioned(using env vars) will be a better way. If my solution is OK, I would like to post a review. Thanks. Guodong On Tue, Jun 4, 2013 at 1:48 AM, Benjamin Hindman wr= ote: > Hi Guodong, > > We'd like to simplify things a bit so we're moving to only allowing flags > on the command line or via environment variables. I have two suggestions: > > (1) If you currently use a configuration file, turn that configuration fi= le > into a script that actually launches one of the binaries and puts the fla= gs > directly on the command line. > > (2) Change your configuration file to actually just put all the options i= n > the environment via MESOS_ (e.g., master=3Dip:port would now be > MESOS_master=3Dip:port). You can then source this file before launching t= he > master or slave. > > Thanks for pointing out that mesos-daemon.sh needs to get updated too. I'= ve > created this ticket tha= t > you can track (or better yet, please contribute!). > > Ben. > > > On Sun, Jun 2, 2013 at 7:27 PM, =E7=8E=8B=E5=9B=BD=E6=A0=8B wrote: > > > Hi guys, > > > > I have checked out the latest code from the git repo. > > > > But I can not run the mesos-slave and mesos-master with the > > script mesos-daemon.sh. I check the option of mesos-master and > mesos-slave, > > is the '--conf' removed ? > > > > How to start the cluster for the new code? > > > > Best > > > > Guodong > > > --001a11c368de6b92f004de4b1a49 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Ben,

Yesterday, I changed the = mesos-daemon. In my solution, I split the old conf file into 2 conf files, = one for masters, the other for slaves.

My patch is attached. But I am not sure whether my solution matches your pu= rpose. If your purpose is to discard the conf file, I think the second way = you mentioned(using env vars) will be a better way.

If my solution is OK, I would like to post a review.
=

Thanks.


Guodong


On Tue, Jun 4, 2013 at 1:48 AM, Benjamin= Hindman <benh@eecs.berkeley.edu> wrote:
Hi Guodong,

We'd like to simplify things a bit so we're moving to only allowing= flags
on the command line or via environment variables. I have two suggestions:
(1) If you currently use a configuration file, turn that configuration file=
into a script that actually launches one of the binaries and puts the flags=
directly on the command line.

(2) Change your configuration file to actually just put all the options in<= br> the environment via MESOS_ (e.g., master=3Dip:port would now be
MESOS_master=3Dip:port). You can then source this file before launching the=
master or slave.

Thanks for pointing out that mesos-daemon.sh needs to get updated too. I= 9;ve
created this ticket <https://issues.apache.org/jira/browse/MESOS-490<= /a>> that
you can track (or better yet, please contribute!).

Ben.


On Sun, Jun 2, 2013 at 7:27 PM, =E7=8E=8B=E5=9B=BD=E6=A0=8B <
wanggd04@gmail.com> wrote:

> Hi guys,
>
> I have checked out the latest code from the git repo.
>
> But I can not run the mesos-slave and mesos-master with the
> script mesos-daemon.sh. I check the option of mesos-master and mesos-s= lave,
> is the '--conf' removed ?
>
> How to start the cluster for the new code?
>
> Best
>
> Guodong
>

--001a11c368de6b92f004de4b1a49-- --001a11c368de6b92f304de4b1a4b--