[jira] [Updated] (YARN-9241) Remove Scheduler specific if/else block and make it injectable in RMController

2019-01-27 Thread Anuj (JIRA)


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

Anuj updated YARN-9241:
---
Description: 
RmController contains a hardcoded if and else block for type of scheduler and 
decides which page to use for which scheduler.

[https://github.com/apache/hadoop/blob/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RmController.java|http://example.com/]

This if else block makes it hard to introduce a new scheduler and corresponding 
webpage without modifying the existing RMController class.

It would be great if we make it extendable.

  was:
RmController contains a hardcoded if and else block for type of scheduler and 
decides which page to use for which scheduler.

[https://github.com/apache/hadoop/blob/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RmController.java|http://example.com]

This if else block makes it hard to introduce a new scheduler and corresponding 
webpage with modifying the existing RMController class.

It would be great if we make it extendable.


> Remove Scheduler specific if/else block and make it injectable in RMController
> --
>
> Key: YARN-9241
> URL: https://issues.apache.org/jira/browse/YARN-9241
> Project: Hadoop YARN
>  Issue Type: Improvement
>  Components: resourcemanager
>Affects Versions: 3.2.0
>Reporter: Anuj
>Priority: Minor
>
> RmController contains a hardcoded if and else block for type of scheduler and 
> decides which page to use for which scheduler.
> [https://github.com/apache/hadoop/blob/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RmController.java|http://example.com/]
> This if else block makes it hard to introduce a new scheduler and 
> corresponding webpage without modifying the existing RMController class.
> It would be great if we make it extendable.



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

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



[jira] [Updated] (YARN-9241) Remove Scheduler specific if/else block and make it injectable in RMController

2019-01-27 Thread Anuj (JIRA)


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

Anuj updated YARN-9241:
---
Description: 
RmController contains a hardcoded if and else block for type of scheduler and 
decides which page to use for which scheduler.

[https://github.com/apache/hadoop/blob/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RmController.java|http://example.com]

This if else block makes it hard to introduce a new scheduler and corresponding 
webpage with modifying the existing RMController class.

It would be great if we make it extendable.

  was:
RmController contains a hardcoded if and else block for type of scheduler and 
decides which page to use for which scheduler.

This if else block makes it hard to introduce a new scheduler and corresponding 
webpage with modifying the existing RMController class.

It would be great if we make it extendable.


> Remove Scheduler specific if/else block and make it injectable in RMController
> --
>
> Key: YARN-9241
> URL: https://issues.apache.org/jira/browse/YARN-9241
> Project: Hadoop YARN
>  Issue Type: Improvement
>  Components: resourcemanager
>Affects Versions: 3.2.0
>Reporter: Anuj
>Priority: Minor
>
> RmController contains a hardcoded if and else block for type of scheduler and 
> decides which page to use for which scheduler.
> [https://github.com/apache/hadoop/blob/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RmController.java|http://example.com]
> This if else block makes it hard to introduce a new scheduler and 
> corresponding webpage with modifying the existing RMController class.
> It would be great if we make it extendable.



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

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



[jira] [Updated] (YARN-9241) Remove Scheduler specific if/else block and make it injectable in RMController

2019-01-27 Thread Anuj (JIRA)


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

Anuj updated YARN-9241:
---
Summary: Remove Scheduler specific if/else block and make it injectable in 
RMController  (was: Remove if else block from RmController.java)

> Remove Scheduler specific if/else block and make it injectable in RMController
> --
>
> Key: YARN-9241
> URL: https://issues.apache.org/jira/browse/YARN-9241
> Project: Hadoop YARN
>  Issue Type: Improvement
>  Components: resourcemanager
>Affects Versions: 3.2.0
>Reporter: Anuj
>Priority: Minor
>
> RmController contains a hardcoded if and else block for type of scheduler and 
> decides which page to use for which scheduler.
> This if else block makes it hard to introduce a new scheduler and 
> corresponding webpage with modifying the existing RMController class.
> It would be great if we make it extendable.



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

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