Re: Custom flags to docker run

2015-08-12 Thread Stephen Knight
I understand, thanks for the help. I'll dig a little deeper on the right
mailing list.

On Wed, Aug 12, 2015 at 11:34 AM, Alexander Rojas alexan...@mesosphere.io
wrote:

 Hey Steven,

 If you check the marathon REST API documentation
 https://mesosphere.github.io/marathon/docs/rest-api.html#post-v2-apps you
 can see you can add docker parameters. However, I still feel the need to
 mention this is the Mesos mail list and you should post your Marathon
 related questions to the Marathon mailing list.

 On 12 Aug 2015, at 09:16, Stephen Knight skni...@pivotal.io wrote:

 Hi,

 Is there a way to pass a custom flag to docker run through the Marathon
 API? I've not seen anything in the documentation, this could just be a
 basic reading fail on my part. What I want to do is use Calico (or similar)
 with Docker and provision containers via Marathon.

 Weave is messy for what I am trying to achieve and the integration isn't
 going as planned, is there a better option and how can you then integrate
 it? Does that flexibility exist in the Marathon API?

 Thx
 Stephen





Re: Ambari and Mesos

2015-08-12 Thread Stephen Knight
Well essentially I want to bring Mesos and Hadoop together, particularly
MRV2. Instead of relying on 2 different schedulers, it would be great to
have a framework that allows the datanode to be a docker container
provisioned in Mesos as an Ambari target.

I see there is some work from Twitter/Ebay on Project Myriad which would
bring the two together. Have to wait and see how that turns out i guess.

On Tue, Aug 11, 2015 at 11:42 PM, Tim St Clair tstcl...@redhat.com wrote:

 Depends entirely what you are trying to do, b/c Ambari has a host of
 capabilities which make it a full management tool for HDP.

 So it may make more sense to break-down what features you are looking to
 integrate...

 Cheers,
 Tim

 --

 *From: *Stephen Knight skni...@pivotal.io
 *To: *user@mesos.apache.org
 *Sent: *Tuesday, August 11, 2015 8:56:35 AM
 *Subject: *Ambari and Mesos


 Hi guys,

 Is there a way to integrate Ambari and Mesos? I see that Mesos is capable
 of managing Hadoop in the sense that it will distribute out resource but
 how would you couple that with Ambari?

 Any advice is greatly appreciated.

 Thanks




 --
 Cheers,
 Timothy St. Clair
 Red Hat Inc.



Ambari and Mesos

2015-08-11 Thread Stephen Knight
Hi guys,

Is there a way to integrate Ambari and Mesos? I see that Mesos is capable
of managing Hadoop in the sense that it will distribute out resource but
how would you couple that with Ambari?

Any advice is greatly appreciated.

Thanks


Re: Mesos slave help

2015-08-06 Thread Stephen Knight
My system doesn't support cat with systemctl for some reason but here is
the contents of /usr/lib/systemd/system/mesos-slave.service

[Unit]

Description=Mesos Slave

After=network.target

Wants=network.target


[Service]

ExecStart=/usr/bin/mesos-init-wrapper slave

KillMode=process

Restart=always

RestartSec=20

LimitNOFILE=16384

CPUAccounting=true

MemoryAccounting=true


[Install]

WantedBy=multi-user.target


What are the required flags to start it manually?

On Thu, Aug 6, 2015 at 2:51 PM, haosdent haosd...@gmail.com wrote:

 Or you could try systemctl cat mesos-slave.service and show us the file
 content.

 On Thu, Aug 6, 2015 at 6:49 PM, haosdent haosd...@gmail.com wrote:

 From this message, I think systemctl status mesos-slave.service -l run
 mesos-slave with uncorrect flags. And the status out of it is the help
 message of slave. Could you try to start mesos-slave in manual way? Not
 through systemctl.

 On Thu, Aug 6, 2015 at 6:41 PM, Stephen Knight skni...@pivotal.io
 wrote:

 systemctl gives me the following output on CentOS: The command to start
 I ran was systemctl start mesos-slave.service

 [root@ip-172-31-35-167 mesos]# systemctl status mesos-slave.service -l

 mesos-slave.service - Mesos Slave

Loaded: loaded (/usr/lib/systemd/system/mesos-slave.service; enabled)

   Drop-In: /etc/systemd/system/mesos-slave.service.d

└─mesos-slave-containerizers.conf

Active: activating (auto-restart) (Result: exit-code) since Thu
 2015-08-06 10:38:08 UTC; 2s ago

   Process: 1472 ExecStart=/usr/bin/mesos-init-wrapper slave *(code=exited,
 status=1/FAILURE)*

  Main PID: 1472 (code=exited, status=1/FAILURE)


 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: *If
 strict=false, any expected errors (e.g., slave cannot recover*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: 
 *information
 about an executor, because the slave died right before*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: *the
 executor registered.) during recovery are ignored and as much*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: *state
 as possible is recovered.*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: *(default:
 true)*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: 
 *--[no-]switch_user
   Whether to run tasks as the user who*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: *submitted
 them rather than the user running*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: *the
 slave (requires setuid permission) (default: true)*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: 
 *--[no-]version
   Show version and exit. (default: false)*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: 
 *--work_dir=VALUE
 Directory path to place framework work
 directories*



 I've also run strace against it, nothing sticks out:


 strace systemctl start mesos-slave.service

 execve(/bin/systemctl, [systemctl, start, mesos-slave.service],
 [/* 18 vars */]) = 0

 brk(0)  = 0x7f5c2af9f000

 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
 = 0x7f5c2a5c6000

 access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or
 directory)

 open(/etc/ld.so.cache, O_RDONLY|O_CLOEXEC) = 3

 fstat(3, {st_mode=S_IFREG|0644, st_size=20940, ...}) = 0

 mmap(NULL, 20940, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5c2a5c

 close(3)= 0

 open(/lib64/libsystemd-daemon.so.0, O_RDONLY|O_CLOEXEC) = 3

 read(3,
 \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\240\r\0\0\0\0\0\0..., 832)
 = 832

 fstat(3, {st_mode=S_IFREG|0755, st_size=15216, ...}) = 0

 mmap(NULL, 2109448, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
 0) = 0x7f5c2a1a2000

 mprotect(0x7f5c2a1a4000, 2097152, PROT_NONE) = 0

 mmap(0x7f5c2a3a4000, 4096, PROT_READ|PROT_WRITE,
 MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f5c2a3a4000

 mmap(0x7f5c2a3a5000, 8, PROT_READ|PROT_WRITE,
 MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5c2a3a5000

 close(3)= 0

 open(/lib64/libdbus-1.so.3, O_RDONLY|O_CLOEXEC) = 3

 read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0@x\0\0\0\0\0\0...,
 832) = 832

 fstat(3, {st_mode=S_IFREG|0755, st_size=304536, ...}) = 0

 mmap(NULL, 2390496, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
 0) = 0x7f5c29f5a000

 mprotect(0x7f5c29fa, 2097152, PROT_NONE) = 0

 mmap(0x7f5c2a1a, 8192, PROT_READ|PROT_WRITE,
 MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x46000) = 0x7f5c2a1a

 close(3)= 0

 open(/lib64/librt.so.1, O_RDONLY|O_CLOEXEC) = 3

 read(3,
 \177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\300\\0\0\0\0\0\0..., 832)
 = 832

 fstat(3, {st_mode=S_IFREG|0755, st_size=44088, ...}) = 0

 mmap(NULL, 4096

Re: Mesos slave help

2015-08-06 Thread Stephen Knight
Hi Klaus, I have attached all from a master and a slave.

I've replicated the problem over and over again, not sure what to make of
it. First registration is fine but then if I reboot the service for
mesos-slave (process restart of full server restart) it never connects
again.

The VM's are in the same VPC on AWS with an open security group between
them.

On Thu, Aug 6, 2015 at 12:41 PM, Klaus Ma kl...@cguru.net wrote:

 Hi Stephen,

 Would you share the log of master  slave?

 Thanks
 Klaus


 On 2015年08月06日 16:07, Stephen Knight wrote:

 Hi,

 I was wondering if anyone can help me. I have a test setup, 1
 master/zookeeper and 2 slaves on Ubuntu 14.04.

 When I initialize the slaves the first time it all works and they register
 with the master (I can see it on x.x.x.x:5050) but when I reboot those
 slaves for any reason, they never re-register. Am I missing something?

 Thx


 --
 ---
 Stephen Knight
 Infrastructure Consultant

 Pivotal Services @ EMC
 +971 (0)56 538 2071

 skni...@pivotal.io
 stephen.knig...@emc.com

 Pivotal.io

 Notice of Confidentiality - This email message is for the sole use of the
 intended recipient and may contain confidential and privileged information.
 Any unauthorized review, use, disclosure or distribution is prohibited. If
 you are not the intended recipient, please contact the sender by reply
 email and destroy all copies of the original message.





mesos-master.ip-172-31-35-166.ec2.internal.invalid-user.log.ERROR.20150806-094757.1193
Description: Binary data


mesos-master.ip-172-31-35-166.ec2.internal.invalid-user.log.INFO.20150806-094058.1193
Description: Binary data


mesos-master.ip-172-31-35-166.ec2.internal.invalid-user.log.WARNING.20150806-094058.1193
Description: Binary data


mesos-slave.ip-172-31-35-168.ec2.internal.invalid-user.log.INFO.20150806-09.2257
Description: Binary data


mesos-slave.ip-172-31-35-168.ec2.internal.invalid-user.log.WARNING.20150806-09.2257
Description: Binary data


Re: Mesos slave help

2015-08-06 Thread Stephen Knight
The work_dir was set to /tmp/mesos by default, I've deleted it and tried to
start the slave again. The dir is not being recreated now, just a continual
service failure.

On Thu, Aug 6, 2015 at 2:59 PM, craig w codecr...@gmail.com wrote:

 Have you tried clearing out the data in the slave's work_dir? for example
 if work dir is /var/mesos, rm -rf /var/mesos/* then start the slave?

 On Thu, Aug 6, 2015 at 6:55 AM, Stephen Knight skni...@pivotal.io wrote:

 My system doesn't support cat with systemctl for some reason but here is
 the contents of /usr/lib/systemd/system/mesos-slave.service

 [Unit]

 Description=Mesos Slave

 After=network.target

 Wants=network.target


 [Service]

 ExecStart=/usr/bin/mesos-init-wrapper slave

 KillMode=process

 Restart=always

 RestartSec=20

 LimitNOFILE=16384

 CPUAccounting=true

 MemoryAccounting=true


 [Install]

 WantedBy=multi-user.target


 What are the required flags to start it manually?

 On Thu, Aug 6, 2015 at 2:51 PM, haosdent haosd...@gmail.com wrote:

 Or you could try systemctl cat mesos-slave.service and show us the
 file content.

 On Thu, Aug 6, 2015 at 6:49 PM, haosdent haosd...@gmail.com wrote:

 From this message, I think systemctl status mesos-slave.service -l
 run mesos-slave with uncorrect flags. And the status out of it is the help
 message of slave. Could you try to start mesos-slave in manual way? Not
 through systemctl.

 On Thu, Aug 6, 2015 at 6:41 PM, Stephen Knight skni...@pivotal.io
 wrote:

 systemctl gives me the following output on CentOS: The command to
 start I ran was systemctl start mesos-slave.service

 [root@ip-172-31-35-167 mesos]# systemctl status mesos-slave.service -l

 mesos-slave.service - Mesos Slave

Loaded: loaded (/usr/lib/systemd/system/mesos-slave.service;
 enabled)

   Drop-In: /etc/systemd/system/mesos-slave.service.d

└─mesos-slave-containerizers.conf

Active: activating (auto-restart) (Result: exit-code) since Thu
 2015-08-06 10:38:08 UTC; 2s ago

   Process: 1472 ExecStart=/usr/bin/mesos-init-wrapper slave *(code=exited,
 status=1/FAILURE)*

  Main PID: 1472 (code=exited, status=1/FAILURE)


 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: *If
 strict=false, any expected errors (e.g., slave cannot recover*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: 
 *information
 about an executor, because the slave died right before*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: *the
 executor registered.) during recovery are ignored and as much*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: *state
 as possible is recovered.*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: 
 *(default:
 true)*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: 
 *--[no-]switch_user
   Whether to run tasks as the user who*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: 
 *submitted
 them rather than the user running*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: *the
 slave (requires setuid permission) (default: true)*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: 
 *--[no-]version
   Show version and exit. (default: false)*

 Aug 06 10:38:08 ip-172-31-35-167.ec2.internal mesos-slave[1483]: 
 *--work_dir=VALUE
 Directory path to place framework work
 directories*



 I've also run strace against it, nothing sticks out:


 strace systemctl start mesos-slave.service

 execve(/bin/systemctl, [systemctl, start,
 mesos-slave.service], [/* 18 vars */]) = 0

 brk(0)  = 0x7f5c2af9f000

 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
 0) = 0x7f5c2a5c6000

 access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or
 directory)

 open(/etc/ld.so.cache, O_RDONLY|O_CLOEXEC) = 3

 fstat(3, {st_mode=S_IFREG|0644, st_size=20940, ...}) = 0

 mmap(NULL, 20940, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5c2a5c

 close(3)= 0

 open(/lib64/libsystemd-daemon.so.0, O_RDONLY|O_CLOEXEC) = 3

 read(3,
 \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\240\r\0\0\0\0\0\0..., 
 832)
 = 832

 fstat(3, {st_mode=S_IFREG|0755, st_size=15216, ...}) = 0

 mmap(NULL, 2109448, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
 0) = 0x7f5c2a1a2000

 mprotect(0x7f5c2a1a4000, 2097152, PROT_NONE) = 0

 mmap(0x7f5c2a3a4000, 4096, PROT_READ|PROT_WRITE,
 MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f5c2a3a4000

 mmap(0x7f5c2a3a5000, 8, PROT_READ|PROT_WRITE,
 MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5c2a3a5000

 close(3)= 0

 open(/lib64/libdbus-1.so.3, O_RDONLY|O_CLOEXEC) = 3

 read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0@x\0\0\0\0\0\0...,
 832) = 832

 fstat(3, {st_mode=S_IFREG|0755, st_size=304536, ...}) = 0

 mmap(NULL, 2390496, PROT_READ|PROT_EXEC

Mesos slave help

2015-08-06 Thread Stephen Knight
Hi,

I was wondering if anyone can help me. I have a test setup, 1
master/zookeeper and 2 slaves on Ubuntu 14.04.

When I initialize the slaves the first time it all works and they register
with the master (I can see it on x.x.x.x:5050) but when I reboot those
slaves for any reason, they never re-register. Am I missing something?

Thx


-- 
---
Stephen Knight
Infrastructure Consultant

Pivotal Services @ EMC
+971 (0)56 538 2071

skni...@pivotal.io
stephen.knig...@emc.com

Pivotal.io

Notice of Confidentiality - This email message is for the sole use of the
intended recipient and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited. If
you are not the intended recipient, please contact the sender by reply
email and destroy all copies of the original message.