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 D64D8200D1F for ; Fri, 13 Oct 2017 23:48:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D489F1609E9; Fri, 13 Oct 2017 21:48:02 +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 F38461609CA for ; Fri, 13 Oct 2017 23:48:01 +0200 (CEST) Received: (qmail 55263 invoked by uid 500); 13 Oct 2017 21:47:56 -0000 Mailing-List: contact user-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mesos.apache.org Delivered-To: mailing list user@mesos.apache.org Received: (qmail 55253 invoked by uid 99); 13 Oct 2017 21:47:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Oct 2017 21:47:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 30970180A12 for ; Fri, 13 Oct 2017 21:47:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.381 X-Spam-Level: ** X-Spam-Status: No, score=2.381 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=mesosphere.io Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id AhpaVDql-uxu for ; Fri, 13 Oct 2017 21:47:52 +0000 (UTC) Received: from mail-ua0-f198.google.com (mail-ua0-f198.google.com [209.85.217.198]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A708B5F3CC for ; Fri, 13 Oct 2017 21:47:52 +0000 (UTC) Received: by mail-ua0-f198.google.com with SMTP id n22so4491690uaj.2 for ; Fri, 13 Oct 2017 14:47:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mesosphere.io; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=tHOhoog0m5kIOO0Mb22pSNJh3CyrIwQGUz9hMK6Veqw=; b=QjR1TkE2u3VjsMjZkysGGfJ6cFrFRCE9GMsTVujWpwEH3cNA0PXVxU/+ew2UD3Szis Kt+lMQGLZqaE7/nhcfDx2AMCQwozocE7X+y1H9k7FWQygdg0Fo++RrTncS+LKKYUT1zu Z3c/ouRv3aEWvBvhAevdoNYKZX72pBb74jy7Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=tHOhoog0m5kIOO0Mb22pSNJh3CyrIwQGUz9hMK6Veqw=; b=hAyvPZ12q/KhBEYfR8pQnkPapyXSJeQTfh8hFJkHXEIokweiwZUogYWPnJ7HqLpqfm AMz2MJayQbSIlW7gnLtZuzsq69Zj00dSZQj9fsuhTLqpYpgqKy8UnMtAqlWzxmRt3MyU C6Tw+go6Teto1OCoj25LGHPV/8gSyAmfuUyY1z2jFgkOmG0rsxYfNMTFwAFgtL6mdQW/ AC01rsU+Sf332z7yXVbZKCQ+/EnU6vs/m345X00BpOw6K3MgaR0+/xKtsHkIL7KEk5PZ H54cHNvwjG2LSCDoBHyBDErTUh3lJTuwC+XWaDWkcUa/yoN/rX1N38ZNKmpMAQm8XrcE xs4Q== X-Gm-Message-State: AMCzsaVnaTFRzXy82I+MMRAbLGUt4fA9Sfyq45dQZz0to7uyHCXtDbOf E+sytngjdPlx+qXIMO+ocUxgeZrIqz2rZthSAooiuZqG3/8= X-Google-Smtp-Source: AOwi7QBPyyxWXc7ZEIfLrWsKZpGgsx3d10epbccH6uZyH8Um3Y99Gbd/VHgK5n0kAhqDMOWc6i0eNOYdYTvpFKk21Vg= X-Received: by 10.159.59.71 with SMTP id j7mr2268658uah.135.1507931271685; Fri, 13 Oct 2017 14:47:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.156.140 with HTTP; Fri, 13 Oct 2017 14:47:50 -0700 (PDT) In-Reply-To: References: <1507925806.33168.ezmlm@mesos.apache.org> From: Joseph Wu Date: Fri, 13 Oct 2017 14:47:50 -0700 Message-ID: Subject: Re: Mesos containerizer with marathon To: user Content-Type: multipart/alternative; boundary="f403043eddc8cb7c7c055b749b28" archived-at: Fri, 13 Oct 2017 21:48:03 -0000 --f403043eddc8cb7c7c055b749b28 Content-Type: text/plain; charset="UTF-8" A quick modification to try... Replace the container type: "container": { > "type": "DOCKER", > With this: "container": { "type": "MESOS", That will tell Marathon to use the Mesos containerizer, rather than the Docker containerizer. On Fri, Oct 13, 2017 at 2:38 PM, Marc Roos wrote: > > I was watching this video https://youtu.be/rHUngcGgzVM?t=1515 of using > mesos for docker images. And it looks like I can run the influxdb docker > image with > mesos-execute --master=192.168.10.151:5050 --name=influxdb > --docker_image=influxdb --shell=false > > However I have problems launching the application via the marathon > webinterface, could this be related to that marathon is looking for the > dockerd? > > Delayed(0 of 1 instances) > State > TASK_FAILED > Message > Abnormal executor termination: unknown container > Without any stderr/stdout > > { > "id": "/influxdb", > "cmd": null, > "cpus": 1, > "mem": 128, > "disk": 200, > "instances": 1, > "acceptedResourceRoles": [], > "container": { > "type": "DOCKER", > "volumes": [], > "docker": { > "image": "influxdb", > "network": "BRIDGE", > "portMappings": [ > { > "containerPort": 8086, > "hostPort": 0, > "servicePort": 10001, > "protocol": "tcp", > "name": "httpapi", > "labels": {} > }, > { > "containerPort": 25829, > "hostPort": 0, > "servicePort": 10002, > "protocol": "tcp", > "name": "collectd", > "labels": {} > } > ], > "privileged": false, > "parameters": [], > "forcePullImage": false > } > }, > "portDefinitions": [ > { > "port": 10001, > "protocol": "tcp", > "name": "default", > "labels": {} > }, > { > "port": 10002, > "protocol": "tcp", > "labels": {} > } > ] > } > > centos7 > mesos-1.4.0-2.0.1.x86_64 > marathon-1.4.8-1.0.660.el7.x86_64 > mesosphere-zookeeper-3.4.6-0.1.20141204175332.centos7.x86_64 > Getting the images directly from /tmp > > PS. Just 'playing' 2 days with mesos test environment, so pardon if > terminology is not correct. > --f403043eddc8cb7c7c055b749b28 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
A quick modification to try...

Replace the con= tainer type:

"container": {
=C2=A0 =C2=A0 "type": "DOCKER",
<= div>
With this:

"container": {
=C2=A0 =C2=A0 "type": "MESOS",

That will t= ell Marathon to use the Mesos containerizer, rather than the Docker contain= erizer.

= On Fri, Oct 13, 2017 at 2:38 PM, Marc Roos <M.Roos@f1-outsourcing.e= u> wrote:

I was watching this video https://youtu.be/rHUngcGgzVM?t= =3D1515 of using
mesos for docker images. And it looks like I can run the influxdb docker image with
mesos-execute --master=3D192.168.10.151:5050 --name=3Dinfluxdb
--docker_image=3Dinfluxdb --shell=3Dfalse

However I have problems launching the application via the marathon
webinterface, could this be related to that marathon is looking for the
dockerd?

Delayed(0 of 1 instances)
State
=C2=A0 =C2=A0 TASK_FAILED
Message
=C2=A0 =C2=A0 Abnormal executor termination: unknown container
Without any stderr/stdout

{
=C2=A0 "id": "/influxdb",
=C2=A0 "cmd": null,
=C2=A0 "cpus": 1,
=C2=A0 "mem": 128,
=C2=A0 "disk": 200,
=C2=A0 "instances": 1,
=C2=A0 "acceptedResourceRoles": [],
=C2=A0 "container": {
=C2=A0 =C2=A0 "type": "DOCKER",
=C2=A0 =C2=A0 "volumes": [],
=C2=A0 =C2=A0 "docker": {
=C2=A0 =C2=A0 =C2=A0 "image": "influxdb",
=C2=A0 =C2=A0 =C2=A0 "network": "BRIDGE",
=C2=A0 =C2=A0 =C2=A0 "portMappings": [
=C2=A0 =C2=A0 =C2=A0 =C2=A0 {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "containerPort": 8086,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "hostPort": 0,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "servicePort": 10001,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "protocol": "tcp", =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "name": "httpapi", =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "labels": {}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "containerPort": 25829,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "hostPort": 0,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "servicePort": 10002,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "protocol": "tcp", =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "name": "collectd",<= br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "labels": {}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 =C2=A0 ],
=C2=A0 =C2=A0 =C2=A0 "privileged": false,
=C2=A0 =C2=A0 =C2=A0 "parameters": [],
=C2=A0 =C2=A0 =C2=A0 "forcePullImage": false
=C2=A0 =C2=A0 }
=C2=A0 },
=C2=A0 "portDefinitions": [
=C2=A0 =C2=A0 {
=C2=A0 =C2=A0 =C2=A0 "port": 10001,
=C2=A0 =C2=A0 =C2=A0 "protocol": "tcp",
=C2=A0 =C2=A0 =C2=A0 "name": "default",
=C2=A0 =C2=A0 =C2=A0 "labels": {}
=C2=A0 =C2=A0 },
=C2=A0 =C2=A0 {
=C2=A0 =C2=A0 =C2=A0 "port": 10002,
=C2=A0 =C2=A0 =C2=A0 "protocol": "tcp",
=C2=A0 =C2=A0 =C2=A0 "labels": {}
=C2=A0 =C2=A0 }
=C2=A0 ]
}

centos7
mesos-1.4.0-2.0.1.x86_64
marathon-1.4.8-1.0.660.el7.x86_64
mesosphere-zookeeper-3.4.6-0.1.20141204175332.centos7.x86_64
Getting the images directly from /tmp

PS. Just 'playing' 2 days with mesos test environment, so pardon if=
terminology is not correct.

--f403043eddc8cb7c7c055b749b28--