mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Park (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MESOS-2467) Allow --resources flag to take JSON.
Date Mon, 09 Mar 2015 17:48:38 GMT

    [ https://issues.apache.org/jira/browse/MESOS-2467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14353265#comment-14353265
] 

Michael Park commented on MESOS-2467:
-------------------------------------

+1 Dominic. Seems like a clean, simple, working solution to me.

A question that I asked myself on this topic is: "what format will the JSON take in terms
of its fields?"
I think the answer is to use the symmetric schema as the {{protobuf}} message which simplifies
implementation since we just use the {{protobuf::parse}} function in {{<stout/protobuf.hpp>}}.

> Allow --resources flag to take JSON.
> ------------------------------------
>
>                 Key: MESOS-2467
>                 URL: https://issues.apache.org/jira/browse/MESOS-2467
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Jie Yu
>
> Currently, we used a customized format for --resources flag. As we introduce more and
more stuffs (e.g., persistence, reservation) in Resource object, we need a more generic way
to specify --resources.
> For backward compatibility, we can scan the first character. If it is '[', then we invoke
the JSON parser. Otherwise, we use the existing parser.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message