hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hung (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-7596) Resource configs not parsed correctly in MapReduce for resources with dot
Date Tue, 27 Mar 2018 21:15:00 GMT

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

Jonathan Hung commented on YARN-7596:

Hi [~sunilg], can you take a look at this issue? This is a fix for parsing resource names
properly in mapreduce (and other applications using ResourceUtils#getRequestedResourcesFromConfig).
e.g. right now passing -Dyarn.app.mapreduce.am.resource.yarn.io/gpu=2 will not take effect.

> Resource configs not parsed correctly in MapReduce for resources with dot
> -------------------------------------------------------------------------
>                 Key: YARN-7596
>                 URL: https://issues.apache.org/jira/browse/YARN-7596
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Jonathan Hung
>            Assignee: Jonathan Hung
>            Priority: Major
>         Attachments: YARN-7596.001.patch
> Similar to YARN-7383, when parsing mapreduce configs for resource values, right now the
regex omits dots. (See {noformat}  public static List<ResourceInformation> getRequestedResourcesFromConfig(
>       Configuration configuration, String prefix) {
>     List<ResourceInformation> result = new ArrayList<>();
>     Map<String, String> customResourcesMap = configuration
>         .getValByRegex("^" + Pattern.quote(prefix) + "[^.]+$");{noformat} in ResourceUtils.java)
> Since YARN-7442 introduces a regex for resource names, we can use that to find mapreduce
resource configs.

This message was sent by Atlassian JIRA

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

View raw message