minor cleanup for formatting and one debug string in the init security method
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/a4b50b56 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/a4b50b56 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/a4b50b56 Branch: refs/heads/develop Commit: a4b50b56b5ac9e4805cddc3634da9598e5393ce9 Parents: de5d801 Author: Steve Loughran <[email protected]> Authored: Tue Sep 1 14:55:23 2015 +0100 Committer: Steve Loughran <[email protected]> Committed: Tue Sep 1 18:59:47 2015 +0100 ---------------------------------------------------------------------- .../java/org/apache/slider/common/tools/SliderUtils.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/a4b50b56/slider-core/src/main/java/org/apache/slider/common/tools/SliderUtils.java ---------------------------------------------------------------------- diff --git a/slider-core/src/main/java/org/apache/slider/common/tools/SliderUtils.java b/slider-core/src/main/java/org/apache/slider/common/tools/SliderUtils.java index 1deffb1..643c823 100644 --- a/slider-core/src/main/java/org/apache/slider/common/tools/SliderUtils.java +++ b/slider-core/src/main/java/org/apache/slider/common/tools/SliderUtils.java @@ -1263,20 +1263,19 @@ public final class SliderUtils { UserGroupInformation.AuthenticationMethod.KERBEROS, conf);*/ UserGroupInformation.setConfiguration(conf); UserGroupInformation authUser = UserGroupInformation.getCurrentUser(); - log.debug("Authenticating as " + authUser.toString()); + log.debug("Authenticating as {}", authUser); log.debug("Login user is {}", UserGroupInformation.getLoginUser()); if (!UserGroupInformation.isSecurityEnabled()) { throw new BadConfigException("Although secure mode is enabled," + - "the application has already set up its user as an insecure entity %s", + "the application has already set up its user as an insecure entity %s", authUser); } if (authUser.getAuthenticationMethod() == UserGroupInformation.AuthenticationMethod.SIMPLE) { throw new BadConfigException("Auth User is not Kerberized %s" + - " -security has already been set up with the wrong authentication method. " - + - "This can occur if a file system has already been created prior to the loading of " - + "the security configuration.", + " -security has already been set up with the wrong authentication method. " + + "This can occur if a file system has already been created prior to the loading of " + + "the security configuration.", authUser); }
