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

ASF subversion and git services commented on SLIDER-274:
--------------------------------------------------------

Commit 3b32b8f7d333bfc506b6539c90d16f000005a55c in incubator-slider's branch 
refs/heads/feature/SLIDER-149_Support_a_YARN_service_registry from 
[~sumitmohanty]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-slider.git;h=3b32b8f ]

SLIDER-105. Agent provider service/client should reject component instance 
count when it exceeds the specified maximum or below the minimum
SLIDER-274. Flex'ing with unknown role name results in BadConfigException


> Flex'ing with unknown role name results in BadConfigException
> -------------------------------------------------------------
>
>                 Key: SLIDER-274
>                 URL: https://issues.apache.org/jira/browse/SLIDER-274
>             Project: Slider
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Gour Saha
>             Fix For: Slider 0.50
>
>
> I used 'slider flex' command with unknown role name - 'worker'
> I got the following exception:
> {code}
> org.apache.hadoop.ipc.RemoteException(org.apache.slider.core.exceptions.BadConfigException):
>  Missing option yarn.role.priority
>       at 
> org.apache.slider.core.conf.MapOperations.getMandatoryOption(MapOperations.java:92)
>       at 
> org.apache.slider.server.appmaster.state.AppState.createDynamicProviderRole(AppState.java:559)
>       at 
> org.apache.slider.server.appmaster.state.AppState.buildRoleRequirementsFromResources(AppState.java:669)
>       at 
> org.apache.slider.server.appmaster.state.AppState.updateResourceDefinitions(AppState.java:631)
>       at 
> org.apache.slider.server.appmaster.SliderAppMaster.flexCluster(SliderAppMaster.java:1090)
>       at 
> org.apache.slider.server.appmaster.SliderAppMaster.flexCluster(SliderAppMaster.java:1209)
>       at 
> org.apache.slider.server.appmaster.rpc.SliderClusterProtocolPBImpl.flexCluster(SliderClusterProtocolPBImpl.java:68)
>       at 
> org.apache.slider.api.proto.SliderClusterAPI$SliderClusterProtocolPB$2.callBlockingMethod(SliderClusterAPI.java:262)
> {code}
> However, this resulted in the addition of following section to 
> /user/yarn/.slider/cluster/cl4/resources.json:
> {code}
>     "worker" : {
>       "yarn.component.instances" : "1"
>     }
> {code}
> This means that subsequent flex commands would always fail because of the 
> above section which doesn't have yarn.role.priority



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to