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

Ted Yu resolved SLIDER-411.
---------------------------
    Resolution: Fixed

> Correct error message when property whose name starts with 'yarn.' is 
> encountered in template
> ---------------------------------------------------------------------------------------------
>
>                 Key: SLIDER-411
>                 URL: https://issues.apache.org/jira/browse/SLIDER-411
>             Project: Slider
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>
> Tassapol reported that when "yarn.memory" appears in appConfig.json, he 
> encountered:
> {code}
> 2014-09-08 20:26:20,540 [main] DEBUG main.ServiceLauncher 
> (ServiceLauncher.java:convertToExitException(518)) - While running service 
> Slider Client: argument yarn.memory does not have 'yarn.' prefix
> org.apache.slider.core.exceptions.BadConfigException: argument yarn.memory 
> does not have 'yarn.' prefix
> at 
> org.apache.slider.core.conf.TemplateInputPropertiesValidator.validatePropertyNamePrefix(TemplateInputPropertiesValidator.java:29)
> at 
> org.apache.slider.core.conf.AbstractInputPropertiesValidator.validateComponentProperties(AbstractInputPropertiesValidator.java:41)
> at 
> org.apache.slider.core.conf.AbstractInputPropertiesValidator.validate(AbstractInputPropertiesValidator.java:31)
> at 
> org.apache.slider.core.conf.ConfTreeOperations.validate(ConfTreeOperations.java:87)
> at 
> org.apache.slider.core.conf.ConfTreeOperations.mergeFile(ConfTreeOperations.java:366)
> at 
> org.apache.slider.client.SliderClient.buildInstanceDefinition(SliderClient.java:669)
> at org.apache.slider.client.SliderClient.actionBuild(SliderClient.java:590)
> at org.apache.slider.client.SliderClient.actionCreate(SliderClient.java:528)
> at org.apache.slider.client.SliderClient.runService(SliderClient.java:307)
> at 
> org.apache.slider.core.main.ServiceLauncher.launchService(ServiceLauncher.java:186)
> at 
> org.apache.slider.core.main.ServiceLauncher.launchServiceRobustly(ServiceLauncher.java:471)
> at 
> org.apache.slider.core.main.ServiceLauncher.launchServiceAndExit(ServiceLauncher.java:401)
> at 
> org.apache.slider.core.main.ServiceLauncher.serviceMain(ServiceLauncher.java:626)
> at org.apache.slider.Slider.main(Slider.java:49)
> {code}
> The error message is misleading.
> The message should indicate that "yarn." properties are not allowed in 
> templates.



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

Reply via email to