You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by James Vanns <jv...@gmail.com> on 2015/03/20 16:48:08 UTC

Task properties/attributes?

Does a mesos task feature a URI attribute or list thereof? For downloading
data automatically within the sandbox in which the command will execute?
Eg. upon defining a task I wish to supply a list of
sources from which to download various different types of data all destined
for the container that the task executes in -- the command will then
process this data, upload any result and the downloaded data is discarded
on task completion (when the container/sandbox is destroyed).

I can't find anything that suggests this is possible in the online
documentation - but I thought I read it some where!?

Cheers,

Jim

Re: Task properties/attributes?

Posted by David Greenberg <ds...@gmail.com>.
You can specify the URIs to download when you launch the actual process
(either with your custom executor, or a Command executor. The URIs to be
downloaded are set here:
https://github.com/apache/mesos/blob/master/include/mesos/mesos.proto#L234

It doesn't look like there's a way to do this when you send additional
tasks to a preexisting executor.

On Fri, Mar 20, 2015 at 11:50 AM James Vanns <jv...@gmail.com> wrote:

> Does a mesos task feature a URI attribute or list thereof? For downloading
> data automatically within the sandbox in which the command will execute?
> Eg. upon defining a task I wish to supply a list of
> sources from which to download various different types of data all
> destined for the container that the task executes in -- the command will
> then process this data, upload any result and the downloaded data is
> discarded on task completion (when the container/sandbox is destroyed).
>
> I can't find anything that suggests this is possible in the online
> documentation - but I thought I read it some where!?
>
> Cheers,
>
> Jim
>
>