@Vinodkone Thanks for the reply. It clarifies things. To be clear I am using an ExecutorInfo. I am also generating new taskId for each launch request.
But, I will look into TaskInfo.data to pass data into my task. Thanks On Sun, Oct 6, 2013 at 2:55 PM, Vinod Kone <[email protected]> wrote: > Hi Vladimir, > > You cannot launch multiple tasks with same taskID for a given framework. > TaskInfo.Command should only be used if you want to use Mesos's Command > Executor. If you have your own executor, TaskInfo.ExecutorInfo should be > set instead. > > Also, I would recommend using TaskInfo.data to send any data that your > task might need. > > > > @vinodkone > > > On Sun, Oct 6, 2013 at 11:35 AM, Vladimir Vivien < > [email protected]> wrote: > >> All, >> I ran into a situation where I need to pass params/values to tasks as >> they are launched from the scheduler. The only mechanism that I see is >> Command.Environment variables. >> >> However, when I attempt to launch tasks with same environment variable >> names, the master rejects subsequent tasks with the taskinfo as invalid due >> task already exists (paraphrase) and the task is marked as TASK_LOST. >> >> Is there another way to reliably pass params/values to a task? In my >> situation, I want to launch a task (upon resource offer) and pass a new >> value to the task upon each Executor.launch callback. >> >> Thanks. >> >> -- >> Vladimir Vivien >> > > -- Vladimir Vivien

