Fix up a little test failure.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1494787 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Aaron Myers 2013-06-19 22:29:22 +00:00
parent 51c85ca067
commit be3a8b6636

View File

@ -729,6 +729,9 @@ public Server run() throws IOException {
final Configuration clientConf = new Configuration(conf); final Configuration clientConf = new Configuration(conf);
SecurityUtil.setAuthenticationMethod(clientAuth, clientConf); SecurityUtil.setAuthenticationMethod(clientAuth, clientConf);
UserGroupInformation.setConfiguration(clientConf); UserGroupInformation.setConfiguration(clientConf);
clientConf.setBoolean(
CommonConfigurationKeys.IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_KEY,
true);
final UserGroupInformation clientUgi = final UserGroupInformation clientUgi =
UserGroupInformation.createRemoteUser(currentUser + "-CLIENT"); UserGroupInformation.createRemoteUser(currentUser + "-CLIENT");