hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kyungwan nam (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-8694) app flex with relative changes does not work
Date Tue, 21 Aug 2018 12:09:00 GMT

     [ https://issues.apache.org/jira/browse/YARN-8694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

kyungwan nam updated YARN-8694:
-------------------------------
    Attachment: YARN-8694.001.patch

> app flex with relative changes does not work
> --------------------------------------------
>
>                 Key: YARN-8694
>                 URL: https://issues.apache.org/jira/browse/YARN-8694
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn-native-services
>    Affects Versions: 3.1.1
>            Reporter: kyungwan nam
>            Priority: Major
>         Attachments: YARN-8694.001.patch
>
>
> I'd like to increase 2 containers as belows.
> {code:java}
> yarn app -flex my-sleeper -component sleeper +2{code}
> but, It did not work. it seems to request 2, not +2.
>  
> ApiServiceClient.actionFlex
> {code:java}
> @Override
> public int actionFlex(String appName, Map<String, String> componentCounts)
>     throws IOException, YarnException {
>   int result = EXIT_SUCCESS;
>   try {
>     Service service = new Service();
>     service.setName(appName);
>     service.setState(ServiceState.FLEX);
>     for (Map.Entry<String, String> entry : componentCounts.entrySet()) {
>       Component component = new Component();
>       component.setName(entry.getKey());
>       Long numberOfContainers = Long.parseLong(entry.getValue());
>       component.setNumberOfContainers(numberOfContainers);
>       service.addComponent(component);
>     }
>     String buffer = jsonSerDeser.toJson(service);
>     ClientResponse response = getApiClient(getServicePath(appName))
>         .put(ClientResponse.class, buffer);{code}
> It looks like there is no code, which handle “+”, “-“ in ApiServiceClient.actionFlex



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

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


Mime
View raw message