You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Dominic Hamon (JIRA)" <ji...@apache.org> on 2015/03/09 17:40:38 UTC

[jira] [Commented] (MESOS-2467) Allow --resources flag to take JSON.

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

Dominic Hamon commented on MESOS-2467:
--------------------------------------

instead of relying on the first character (which can also be '{' in valid json) perhaps we can instead:

- try JSON parsing, catch failure
- fallback to old parsing


This also means we can deprecate the old parsing behaviour more easily. 

> 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)