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

Chandni Singh commented on YARN-9273:
-------------------------------------

{quote}
I chose option 1 because changing the Component Spec means changing the public 
API, and it seems to me that it's a bit overkill.
{quote}
[~masatana] Option 1 doesn't fix the bug when the user is directly posting to 
the Api Server. It only works when the user does it via Yarn Cli. Also adding a 
field (whether the num containers is relative or not) to Component Spec is 
backward compatible. We can't change the of {{num containers}} to {{String}} 
because then it will be backward incompatible.

> Flexing a component of YARN service does not work as documented when using 
> relative number
> ------------------------------------------------------------------------------------------
>
>                 Key: YARN-9273
>                 URL: https://issues.apache.org/jira/browse/YARN-9273
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Masahiro Tanaka
>            Assignee: Masahiro Tanaka
>            Priority: Minor
>         Attachments: YARN-9273.001.patch, YARN-9273.002.patch, 
> YARN-9273.003.patch, YARN-9273.004.patch
>
>
> [The 
> documents|https://hadoop.apache.org/docs/r3.2.0/hadoop-yarn/hadoop-yarn-site/yarn-service/QuickStart.html]
>  says,
>  "Relative changes are also supported for the ${NUMBER_OF_CONTAINERS} in the 
> flex command, such as +2 or -2." when you want to flex a component of a YARN 
> service.
> I expected that {{yarn app -flex sleeper-service -component sleeper +1}} 
> increments the number of container, but actually it sets the number of 
> container to just one.
> I guess ApiServiceClient#actionFlex treats flexing when executing the {{yarn 
> app -flex}}, and it just uses {{Long.parseLong}} to convert the argument like 
> {{+1}}, which doesn't care relative numbers.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to