Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9CCB5200BAB for ; Sat, 8 Oct 2016 02:29:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9B777160AE9; Sat, 8 Oct 2016 00:29:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D7A14160AE8 for ; Sat, 8 Oct 2016 02:29:19 +0200 (CEST) Received: (qmail 15533 invoked by uid 500); 8 Oct 2016 00:29:18 -0000 Mailing-List: contact dev-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list dev@mesos.apache.org Received: (qmail 15522 invoked by uid 99); 8 Oct 2016 00:29:18 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Oct 2016 00:29:18 +0000 Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 459641A0046 for ; Sat, 8 Oct 2016 00:29:18 +0000 (UTC) Received: by mail-wm0-f54.google.com with SMTP id i130so69880197wmg.1 for ; Fri, 07 Oct 2016 17:29:18 -0700 (PDT) X-Gm-Message-State: AA6/9RnAA4GqoMbZIy8FNg8bA+dQ2bShh2iqnibHB6P/4n9MTjpI6rBvrq+knHWwaLQDjWKqsNzRRI6p9y5kf/J8 X-Received: by 10.28.93.18 with SMTP id r18mr878785wmb.28.1475886556269; Fri, 07 Oct 2016 17:29:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.169.17 with HTTP; Fri, 7 Oct 2016 17:28:55 -0700 (PDT) In-Reply-To: References: From: Zameer Manji Date: Fri, 7 Oct 2016 17:28:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Deprecate MESOS_DIRECTORY executor environment variable To: dev@mesos.apache.org Content-Type: multipart/alternative; boundary=001a1145b118eb15d7053e4f9d7e archived-at: Sat, 08 Oct 2016 00:29:20 -0000 --001a1145b118eb15d7053e4f9d7e Content-Type: text/plain; charset=UTF-8 Jie, Without commenting on this deprecation, how is this going to work now that Mesos is 1.0? What is the definition of "deprecate" being used here? Is it something that will be removed in Mesos 2.0? On Fri, Oct 7, 2016 at 4:49 PM, Jie Yu wrote: > Hi, > > Want to initiate a discussion here. Before Mesos containerizer has > container image support (all containers share the same host file system), > $MESOS_DIRECTORY env variable is used to let executor know their sandbox > location. > > Later, we introduced container image support to Mesos containerizer so that > each container can has its own root filesystem. Due to some historical > reason (thermos), we decided to keep $MESOS_DIRECTORY to be the path to the > sandbox on the host filesystem (e.g., `/var/lib/mesos/slaves/...`) even if > the container has its own root filesystem. And introduced a new > $MESOS_SANDBOX to point to the sandbox in the container's root filesystem > (e.g., `/mnt/mesos/sandbox`). If the container does not have a root > filesystem, $MESOS_DIRECTORY == $MESOS_SANDBOX. > > Now, we plan to deprecate $MESOS_DIRECTORY because it'll be really > confusing to executor writers, and it'll be an error if they try to access > $MESOS_DIRECTORY if their container has a root filesystem defined. > > - Jie > > -- > Zameer Manji > --001a1145b118eb15d7053e4f9d7e--