You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Masahiro Tanaka (JIRA)" <ji...@apache.org> on 2019/02/02 02:58:00 UTC

[jira] [Created] (YARN-9273) Flexing a component of YARN service does not work as documented when using relative number

Masahiro Tanaka created YARN-9273:
-------------------------------------

             Summary: 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


[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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org