You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by 梦开始的地方 <38...@qq.com> on 2017/04/07 03:31:33 UTC

回复: How to filter GET_TASKS api result

but spark and chronos has too many short tasks,get all task is too slow.


------------------ 原始邮件 ------------------
发件人: "Alexander Rojas";<al...@mesosphere.io>;
发送时间: 2017年4月3日(星期一) 晚上9:47
收件人: "user"<us...@mesos.apache.org>; 

主题: Re: How to filter GET_TASKS api result



Hi,

Mesos does not have a way to get info about a single task, however the answer should be pretty easy to filter so you can search for the task you’re looking for.
 
Alexander Rojas
alexander@mesosphere.io




 
 
On 20 Mar 2017, at 10:35, 梦开始的地方 <38...@qq.com> wrote:

Hi,I'd like to use the GET_TASKS api get specific task ,but the api return all tasks.please help me,thanks

回复: How to filter GET_TASKS api result

Posted by 梦开始的地方 <38...@qq.com>.
thanks




------------------ 原始邮件 ------------------
发件人: "James Peach";<jo...@gmail.com>;
发送时间: 2017年4月20日(星期四) 上午8:13
收件人: "user"<us...@mesos.apache.org>; 

主题: Re: How to filter GET_TASKS api result




> On Apr 19, 2017, at 5:00 PM, Benjamin Mahler <bm...@apache.org> wrote:
> 
> We can add a Call.GetTasks message to allow you to specify which task ids you would like to retrieve. But this isn't supported yet, the code needs to be written. E.g.
> 
> message Call {
>   enum Type {
>     GET_TASKS = 13;         // Retrieves the information about tasks, see `GetTasks` below.
>   }
> 
>   message GetTasks {
>     // Which tasks to retrieve, leave empty to retrieve all tasks.
>     repeated TaskID task_ids;
>   }
> }

See also https://issues.apache.org/jira/browse/MESOS-6935. It makes sense to be able to ask for specific FrameworkIDs too.

> 
> On Thu, Apr 6, 2017 at 8:31 PM, 梦开始的地方 <38...@qq.com> wrote:
> 
> but spark and chronos has too many short tasks,get all task is too slow.
> 
> ------------------ 原始邮件 ------------------
> 发件人: "Alexander Rojas";<al...@mesosphere.io>;
> 发送时间: 2017年4月3日(星期一) 晚上9:47
> 收件人: "user"<us...@mesos.apache.org>;
> 主题: Re: How to filter GET_TASKS api result
> 
> Hi,
> 
> Mesos does not have a way to get info about a single task, however the answer should be pretty easy to filter so you can search for the task you’re looking for.
> 
> Alexander Rojas
> alexander@mesosphere.io
> 
> 
> 
> 
>> On 20 Mar 2017, at 10:35, 梦开始的地方 <38...@qq.com> wrote:
>> 
>> Hi,I'd like to use the GET_TASKS api get specific task ,but the api return all tasks.
>> please help me,thanks
>> 
> 
>

Re: How to filter GET_TASKS api result

Posted by James Peach <jo...@gmail.com>.
> On Apr 19, 2017, at 5:00 PM, Benjamin Mahler <bm...@apache.org> wrote:
> 
> We can add a Call.GetTasks message to allow you to specify which task ids you would like to retrieve. But this isn't supported yet, the code needs to be written. E.g.
> 
> message Call {
>   enum Type {
>     GET_TASKS = 13;         // Retrieves the information about tasks, see `GetTasks` below.
>   }
> 
>   message GetTasks {
>     // Which tasks to retrieve, leave empty to retrieve all tasks.
>     repeated TaskID task_ids;
>   }
> }

See also https://issues.apache.org/jira/browse/MESOS-6935. It makes sense to be able to ask for specific FrameworkIDs too.

> 
> On Thu, Apr 6, 2017 at 8:31 PM, 梦开始的地方 <38...@qq.com> wrote:
> 
> but spark and chronos has too many short tasks,get all task is too slow.
> 
> ------------------ 原始邮件 ------------------
> 发件人: "Alexander Rojas";<al...@mesosphere.io>;
> 发送时间: 2017年4月3日(星期一) 晚上9:47
> 收件人: "user"<us...@mesos.apache.org>;
> 主题: Re: How to filter GET_TASKS api result
> 
> Hi,
> 
> Mesos does not have a way to get info about a single task, however the answer should be pretty easy to filter so you can search for the task you’re looking for.
> 
> Alexander Rojas
> alexander@mesosphere.io
> 
> 
> 
> 
>> On 20 Mar 2017, at 10:35, 梦开始的地方 <38...@qq.com> wrote:
>> 
>> Hi,I'd like to use the GET_TASKS api get specific task ,but the api return all tasks.
>> please help me,thanks
>> 
> 
> 


Re: How to filter GET_TASKS api result

Posted by Benjamin Mahler <bm...@apache.org>.
We can add a Call.GetTasks message to allow you to specify which task ids
you would like to retrieve. But this isn't supported yet, the code needs to
be written. E.g.

message Call {
  enum Type {
    GET_TASKS = 13;         // Retrieves the information about tasks, see
`GetTasks` below.
  }

  message GetTasks {
    // Which tasks to retrieve, leave empty to retrieve all tasks.
    repeated TaskID task_ids;
  }
}

On Thu, Apr 6, 2017 at 8:31 PM, 梦开始的地方 <38...@qq.com> wrote:

>
> but spark and chronos has too many short tasks,get all task is too slow.
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Alexander Rojas";<al...@mesosphere.io>;
> *发送时间:* 2017年4月3日(星期一) 晚上9:47
> *收件人:* "user"<us...@mesos.apache.org>;
> *主题:* Re: How to filter GET_TASKS api result
>
> Hi,
>
> Mesos does not have a way to get info about a single task, however the
> answer should be pretty easy to filter so you can search for the task
> you’re looking for.
>
> Alexander Rojas
> alexander@mesosphere.io
>
>
>
>
> On 20 Mar 2017, at 10:35, 梦开始的地方 <38...@qq.com> wrote:
>
> Hi,I'd like to use the GET_TASKS api get specific task ,but the api return
> all tasks.
> please help me,thanks
>
>
>