SLIDER-411 Correct error message when property whose name starts with 'yarn.' is encountered in template
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/f6d7917d Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/f6d7917d Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/f6d7917d Branch: refs/heads/feature/SLIDER-149_Support_a_YARN_service_registry Commit: f6d7917d250509bd751164a891ef43f770243327 Parents: 1d083ae Author: tedyu <yuzhih...@gmail.com> Authored: Mon Sep 8 20:50:10 2014 -0700 Committer: tedyu <yuzhih...@gmail.com> Committed: Mon Sep 8 20:50:10 2014 -0700 ---------------------------------------------------------------------- .../apache/slider/core/conf/TemplateInputPropertiesValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/f6d7917d/slider-core/src/main/java/org/apache/slider/core/conf/TemplateInputPropertiesValidator.java ---------------------------------------------------------------------- diff --git a/slider-core/src/main/java/org/apache/slider/core/conf/TemplateInputPropertiesValidator.java b/slider-core/src/main/java/org/apache/slider/core/conf/TemplateInputPropertiesValidator.java index 5494174..aad2757 100644 --- a/slider-core/src/main/java/org/apache/slider/core/conf/TemplateInputPropertiesValidator.java +++ b/slider-core/src/main/java/org/apache/slider/core/conf/TemplateInputPropertiesValidator.java @@ -27,7 +27,7 @@ public class TemplateInputPropertiesValidator void validatePropertyNamePrefix(String key) throws BadConfigException { if (key.startsWith("yarn.")) { throw new BadConfigException( - "argument %s does not have 'yarn.' prefix", key); + "argument %s has 'yarn.' prefix - this is not allowed in templates", key); } }