Passing a pointer to an Object in task Info

2014-07-30 Thread Sai Sagar
Hi all,

I want to pass a pointer to an object in Task Information like we do in
task.set_data(some string).
In executor, I want to call a method of the object with some parameters
sent along with pointer to object in task information. Can some one please
guide me on this?


Best Regards,

J. Sai Sagar
Software Engineer,
Innovation Labs
Impetus - Bangalore


Force a slave to garbage collect framework/executors

2014-07-30 Thread Tom Arnfeld
I'm not sure if this is something already supported by mesos, and if so
it'd be great if someone could point me in the right direction.

Is there a way of asking a slave to garbage collect old executors manually?

Maybe i'm misunderstanding things, but as each executor does (insert
knowledge gap) mesos works out how long it is able to keep the sandbox for
and schedules it for garbage collection appropriately, also taking into
account the command line

The disk on one of my slaves is getting quite full (98%) and i'm curious
how mesos is going to behave in this situation. Should it start clearing
things up, given a task could launch that needs to use an amount of disk
space, but that disk is being eaten up by old executor sandboxes.

It may be worth noting i'm not specifying --gc_delay on any slave right
now, perhaps I should be?

Any input would be much appreciated.

Cheers,

Tom.


Re: why does mesos require resolving all zookeeper hostnames?

2014-07-30 Thread Raúl Gutiérrez Segalés
On 30 July 2014 00:25, Itamar Ostricher ita...@yowza3d.com wrote:

 Thanks for the pointers!
 I'm not sure where in ZOOKEEPER-107 it says that, but I'll take your word
 for it :-)
 Any idea when 3.5 will be released?


There's a release candidate due this week, so I am hoping some time in Aug.


-rgs


Re: Passing a pointer to an Object in task Info

2014-07-30 Thread Niklas Nielsen
I am not sure I completely understand the issue. Just passing a pointer
won't work. The compiled protobuf code won't try to infer the size of the
object. Also it will go over the wire, so you can't reference memory on the
other node.
In one way or another, you need to serialize the object to a byte array.
How you interpret that on the other end is different thing; here you should
be able to reconstruct the object and have the implementations handy on the
receiver side.

// Sender
Obj a;
task.set_data(a.serialize())

// Receiver
Obj b;
b.deserialize(task.data())
b.foobar(); // Call your method - the implementation need to be known by
the receiver.

Did I misunderstand your question?

Niklas


On 30 July 2014 03:43, Sai Sagar jsaisa...@gmail.com wrote:

 Hi all,

 I want to pass a pointer to an object in Task Information like we do in
 task.set_data(some string).
 In executor, I want to call a method of the object with some parameters
 sent along with pointer to object in task information. Can some one please
 guide me on this?


 Best Regards,

 J. Sai Sagar
 Software Engineer,
 Innovation Labs
 Impetus - Bangalore