You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/08/04 20:26:12 UTC
[jira] [Created] (SLIDER-274) Flex'ing with unknown role name
results in BadConfigException
Ted Yu created SLIDER-274:
-----------------------------
Summary: 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
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)