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

[jira] [Commented] (YARN-9284) Fix the unit of yarn.service.am-resource.memory in the document

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

Masahiro Tanaka commented on YARN-9284:
---------------------------------------

Thanks [~ajisakaa] for reviewing & committing this!

> Fix the unit of yarn.service.am-resource.memory in the document
> ---------------------------------------------------------------
>
>                 Key: YARN-9284
>                 URL: https://issues.apache.org/jira/browse/YARN-9284
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: documentation, yarn-native-services
>            Reporter: Masahiro Tanaka
>            Assignee: Masahiro Tanaka
>            Priority: Minor
>             Fix For: 3.3.0, 3.2.1, 3.1.3
>
>         Attachments: YARN-9284.001.patch
>
>
> In the [YARN Services configuration document|https://hadoop.apache.org/docs/r3.2.0/hadoop-yarn/hadoop-yarn-site/yarn-service/Configurations.html], the description of {{yarn.service.am-resource.memory}} says, 
>  bq. Memory size in GB for the service AM (default 1024).
> which should be {{MB}} as this is used [here|https://github.com/apache/hadoop/blob/49ddd8a6ed5b40d12defb0771b4c8b53d4ffde3f/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/client/ServiceClient.java#L1008] and {{Resource.newInstance}} creates {{LightWeightResource}}. The unit for memory is megabytes as described in [javadocs|https://github.com/apache/hadoop/blob/49ddd8a6ed5b40d12defb0771b4c8b53d4ffde3f/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/impl/LightWeightResource.java#L44]



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