hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gour Saha (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-8084) Yarn native service classes renaming for easier development?
Date Thu, 29 Mar 2018 22:47:00 GMT

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

Gour Saha commented on YARN-8084:

[~eyang], I agree with you. I would also prefer if existing classes in api.records remain
as is, primarily because it is end-user/consumer friendly. By consumers, I primarily refer
to the REST API or programmatic client-side API users who would use the swagger definition
to generate client-side stubs in a language of their choice. The duplication of class name
is definitely inconvenient for developers, but I prefer developers taking the hit rather than
consumers. Nevertheless, if we rename the non-(api.records) classes we will solve the dev
issue as well.

> Yarn native service classes renaming for easier development? 
> -------------------------------------------------------------
>                 Key: YARN-8084
>                 URL: https://issues.apache.org/jira/browse/YARN-8084
>             Project: Hadoop YARN
>          Issue Type: Task
>            Reporter: Wangda Tan
>            Priority: Major
> There're a couple of classes with same name exists in YARN native service. Such as: 
> 1) ...service.component.Component and api.records.Component.
> This makes harder when development in IDE since clash of class name forces to use full
qualified class name.
> Similarly in API definition:
> ...service.api.records:
> Container/ContainerState/Resource/ResourceInformation. How about rename them to:
> ServiceContainer/ServiceContainerState/ServiceResource/ServiceResourceInformation?

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