hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gergely Pollak (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-9444) YARN Api Resource Utils's getRequestedResourcesFromConfig doesn't recognise yarn.io/gpu as a valid resource type
Date Fri, 05 Apr 2019 12:12:00 GMT
Gergely Pollak created YARN-9444:
------------------------------------

             Summary: YARN Api Resource Utils's getRequestedResourcesFromConfig doesn't recognise
yarn.io/gpu as a valid resource type
                 Key: YARN-9444
                 URL: https://issues.apache.org/jira/browse/YARN-9444
             Project: Hadoop YARN
          Issue Type: Bug
          Components: api
            Reporter: Gergely Pollak
            Assignee: Gergely Pollak


The original issue was the jobclient test did not send the requested resource type, when specified
in the command line eg:

hadoop jar hadoop-mapreduce-client-jobclient-tests.jar sleep -Dmapreduce.reduce.resource.yarn.io/gpu=1 
-m 10 -r 1 -mt 90000

After some investigation, it turned out it only affects resource types with name containing
'.' characters. And the root cause is regexp from the getRequestedResourcesFromConfig method.

"^" + Pattern.quote(prefix) + "[^.]+$"

This regexp explicitly forbids any dots in the resource type name, which is inconsistent with
the default resource type for gpu and fpga, which are yarn.io/gpu and yarn.io/fpga respectively.

 

 

 

 



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


Mime
View raw message