You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Andrew Grande (JIRA)" <ji...@apache.org> on 2014/09/12 19:45:36 UTC

[jira] [Commented] (SLIDER-274) Flex'ing with unknown role name results in BadConfigException

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

Andrew Grande commented on SLIDER-274:
--------------------------------------

Guys, just hit that bug in 0.40 - really can derail first-time user's progress. We should expect to fail the command due to the component not being there instead of adding an invalid entry to the resources file. Took me some manual effort to cleanup cluster state file, but I don't expect another user would ever do that.

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