[ https://issues.apache.org/jira/browse/YARN-9273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Masahiro Tanaka updated YARN-9273: ---------------------------------- Attachment: YARN-9273.002.patch > 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 > > > [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