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

Sumit Mohanty commented on SLIDER-274:
--------------------------------------

Looks like we are hitting the code path where unknown component types are 
dynamically absorbed. Perhaps we can add a hook to invoke AgentClientProvider 
and have the code there validate based on the metainfo file.

> 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: Steve Loughran
>
> 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.2#6252)

Reply via email to